Implemented new setUniform API for shaders.

Deprecated old setParameter API.
This commit is contained in:
Alec Iverson committed 2016-08-12 15:11:54 -07:00
1 parent 36430b11c7
commit 16ea259e04
3 files changed
+586 -116

No files matched your search

+22 -22
View File
@@ -36,8 +36,8 @@ typedef sfVector2i sfGlslIvec2;
typedef struct
{
bool x;
bool y;
bool x;
bool y;
} sfGlslBvec2;
// 3D vectors
@@ -45,52 +45,52 @@ typedef sfVector3f sfGlslVec3;
typedef struct
{
int x;
int y;
int z;
int x;
int y;
int z;
} sfGlslIvec3;
typedef struct
{
bool x;
bool y;
bool z;
bool x;
bool y;
bool z;
} sfGlslBvec3;
// 4D vectors
typedef struct
{
float x;
float y;
float z;
float w;
float x;
float y;
float z;
float w;
} sfGlslVec4;
typedef struct
{
int x;
int y;
int z;
int w;
int x;
int y;
int z;
int w;
} sfGlslIvec4;
typedef struct
{
bool x;
bool y;
bool z;
bool w;
bool x;
bool y;
bool z;
bool w;
} sfGlslBvec4;
// matrices
typedef struct
{
float array[3 * 3];
float array[3 * 3];
} sfGlslMat3;
typedef struct
{
float array[4 * 4];
float array[4 * 4];
} sfGlslMat4;
#endif // SFML_GLSL_H