A uniform holding a four vector value. More...
#include <Uniform.h>
Public Member Functions | |
virtual | ~Uniform4 () |
Deletes this uniform. | |
virtual UniformType | getType () const |
Returns the type of this uniform. | |
vec4< T > | get () const |
Returns the current value of this uniform. | |
void | set (const vec4< T > &value) |
Sets the value of this uniform. | |
virtual void | setValue (ptr< Value > v) |
Sets the value of this uniform. | |
Protected Member Functions | |
Uniform4 (Program *program, UniformBlock *block, const string &name, GLint location) | |
Creates a new uniform. | |
virtual void | setValue () |
Sets this uniform in its program. |
A uniform holding a four vector value.
virtual ork::Uniform4< U, T, R, V, W >::~Uniform4 | ( | ) | [inline, virtual] |
Deletes this uniform.
ork::Uniform4< U, T, R, V, W >::Uniform4 | ( | Program * | program, | |
UniformBlock * | block, | |||
const string & | name, | |||
GLint | location | |||
) | [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. |
vec4<T> ork::Uniform4< U, T, R, V, W >::get | ( | ) | const [inline] |
Returns the current value of this uniform.
virtual UniformType ork::Uniform4< U, T, R, V, W >::getType | ( | ) | const [inline, virtual] |
Returns the type of this uniform.
Implements ork::Uniform.
void ork::Uniform4< U, T, R, V, W >::set | ( | const vec4< T > & | value | ) | [inline] |
Sets the value of this uniform.
value | the new value for this uniform. |
virtual void ork::Uniform4< U, T, R, V, W >::setValue | ( | ) | [protected, virtual] |
Sets this uniform in its program.
Implements ork::Uniform.
virtual void ork::Uniform4< U, T, R, V, W >::setValue | ( | ptr< Value > | v | ) | [inline, virtual] |
Sets the value of this uniform.
v | the new value for this uniform. Must be of the same type as this Uniform. |
Implements ork::Uniform.