Represents a uniform variable in a shader program. The program must be bound before any values may be set. More...
#include <Shader.h>
Public Member Functions | |
| operator GLint () const | |
| Retrieves the location of the uniform variable.  | |
| bool | Exists () const | 
| Returns whether this object reprents a valid variable.  | |
| void | SetFloat1 (float f0) | 
| Assigns a value to this variable in the shader.  | |
| void | SetFloat2 (float f0, float f1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetFloat3 (float f0, float f1, float f2) | 
| Assigns a value to this variable in the shader.  | |
| void | SetFloat4 (float f0, float f1, float f2, float f3) | 
| Assigns a value to this variable in the shader.  | |
| void | SetFloat1 (const float *f, GLsizei arrayCount=1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetFloat2 (const float *f, GLsizei arrayCount=1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetFloat3 (const float *f, GLsizei arrayCount=1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetFloat4 (const float *f, GLsizei arrayCount=1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetInt1 (int i0) | 
| Assigns a value to this variable in the shader.  | |
| void | SetInt2 (int i0, int i1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetInt3 (int i0, int i1, int i2) | 
| Assigns a value to this variable in the shader.  | |
| void | SetInt4 (int i0, int i1, int i2, int i3) | 
| Assigns a value to this variable in the shader.  | |
| void | SetInt1 (const int *i, GLsizei arrayCount=1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetInt2 (const int *i, GLsizei arrayCount=1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetInt3 (const int *i, GLsizei arrayCount=1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetInt4 (const int *i, GLsizei arrayCount=1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetMatrix2x2 (const float *m, bool transpose=false, GLsizei arrayCount=1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetMatrix3x3 (const float *m, bool transpose=false, GLsizei arrayCount=1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetMatrix4x4 (const float *m, bool transpose=false, GLsizei arrayCount=1) | 
| Assigns a value to this variable in the shader.  | |
| void | SetTextureStage (int stage) | 
| Sets a texture stage number.  | |
| void | SetVector2 (const GEO::Vector2 &v) | 
| Assigns a value to this variable in the shader.  | |
| void | SetVector3 (const GEO::Vector3 &v) | 
| Assigns a value to this variable in the shader.  | |
| void | SetVector4 (const GEO::Vector4 &v) | 
| Assigns a value to this variable in the shader.  | |
| void | SetMatrix2x2 (const GEO::Matrix2 &m, bool transpose=false) | 
| Assigns a value to this variable in the shader.  | |
| void | SetMatrix3x3 (const GEO::Matrix3 &m, bool transpose=false) | 
| Assigns a value to this variable in the shader.  | |
| void | SetMatrix4x4 (const GEO::Matrix4 &m, bool transpose=false) | 
| Assigns a value to this variable in the shader.  | |
Represents a uniform variable in a shader program. The program must be bound before any values may be set.
 1.7.1