Constructor. Sets the dirty flag and "invalid" uniform location.
Destructor. Does nothing.
void SetDirtyFlag |
( |
void |
| ) |
|
Mark this uniform as dirty, guaranteeing the uniform will be updated on the next set call.
void SetUniform1f |
( |
float |
data | ) |
|
Set single float uniform data.
- Parameters
-
[in] | data | The uniform value to set. |
void SetUniform1i |
( |
int |
data | ) |
|
Set single integer uniform data.
- Parameters
-
[in] | data | The uniform value to set. |
void SetUniform2f |
( |
float * |
data | ) |
|
Set two float uniform data.
- Parameters
-
[in] | data | The uniform value to set. |
void SetUniform2i |
( |
int * |
data | ) |
|
Set two integer uniform data.
- Parameters
-
[in] | data | The uniform value to set. |
void SetUniform3f |
( |
float * |
data | ) |
|
Set three float uniform data.
- Parameters
-
[in] | data | The uniform value to set. |
void SetUniform3i |
( |
int * |
data | ) |
|
Set three integer uniform data.
- Parameters
-
[in] | data | The uniform value to set. |
void SetUniform4f |
( |
float * |
data | ) |
|
Set four float uniform data.
- Parameters
-
[in] | data | The uniform value to set. |
void SetUniform4f |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
float |
w |
|
) |
| |
Set four float uniform data.
- Parameters
-
[in] | x | the first float value |
[in] | y | the second float value |
[in] | z | the third float value |
[in] | w | the fourth float value |
void SetUniform4fv |
( |
int |
size, |
|
|
float * |
data |
|
) |
| |
Set four float uniform data vectors. Note that this method doesn't cache the old values, since we would have to dynamically allocate the cache memory based on size. Therefore, prefer SetUniform4f when just setting a single 4 float vector
- Parameters
-
[in] | size | the number of 4 float vectors to set |
[in] | data | The uniform value to set. |
void SetUniform4i |
( |
int * |
data | ) |
|
Set four integer uniform data.
- Parameters
-
[in] | data | The uniform value to set. |
GLint SetUniformLocation |
( |
GLuint |
programObject, |
|
|
const GLchar * |
name |
|
) |
| |
Grabs the uniform location for this uniform from the program object.
- Parameters
-
[in] | programObject | The program that this uniform belongs to. |
[in] | name | The name of the variable as provided to the shaders |
- Returns
- The new uniform location, or -1 on failure.
void SetUniformMatrix2f |
( |
float * |
data | ) |
|
Set 2x2 matrix uniform data.
- Parameters
-
[in] | data | The uniform value to set. |
void SetUniformMatrix3f |
( |
float * |
data | ) |
|
Set 3x3 matrix uniform data.
- Parameters
-
[in] | data | The uniform value to set. |
void SetUniformMatrix4f |
( |
float * |
data | ) |
|
Set 4x4 matrix uniform data.
- Parameters
-
[in] | data | The uniform value to set. |
Convenience Union for comparing data.
If true, the uniform data should be sent to the program object. Defaults to true.
The uniform location as provided by the shader program. Defaults to -1.
The documentation for this class was generated from the following file: