A uniform holding a 3x3 matrix value. More...
#include <Uniform.h>
Public Member Functions | |
mat3< T > | getMatrix () const |
Returns the current value of this uniform. | |
void | setMatrix (const mat3< T > &value) |
Sets the value of this uniform. | |
Protected Member Functions | |
UniformMatrix3 (Program *program, UniformBlock *block, const string &name, GLint location, int stride, int isRowMajor) | |
Creates a new uniform. |
A uniform holding a 3x3 matrix value.
ork::UniformMatrix3< U, T, V, W >::UniformMatrix3 | ( | Program * | program, | |
UniformBlock * | block, | |||
const string & | name, | |||
GLint | location, | |||
int | stride, | |||
int | isRowMajor | |||
) | [inline, protected] |
Creates a new uniform.
program | the Program to which this uniform belongs. | |
block | UniformBlock to which this uniform belongs. Maybe NULL. | |
name | the name of the uniform in the GLSL shader code. | |
location | the location of this uniform. For an uniform inside a block, this location is an offset inside the uniform block buffer. | |
stride | the stride between two consecutive rows or columns when this uniform is stored in an uniform block. | |
isRowMajor | true if this uniform is stored in row major order in an uniform block. |
mat3<T> ork::UniformMatrix3< U, T, V, W >::getMatrix | ( | ) | const [inline] |
Returns the current value of this uniform.
void ork::UniformMatrix3< U, T, V, W >::setMatrix | ( | const mat3< T > & | value | ) | [inline] |
Sets the value of this uniform.
value | the new value for this uniform. |