#include <uniform.h>
Public Member Functions | |
virtual int | getActiveUniforms (void)=0 |
Returns the number of uniforms stored in this object. | |
virtual CUniform | getUniform (int index)=0 |
Returns an indexed uniform. | |
virtual void | setUniform (int index, const CUniform &u)=0 |
Sets the uniform at a given index. |
The uniforms an be read and written. Uniforms can be accessed with a zero based index.
virtual int IUniformState::getActiveUniforms | ( | void | ) | [pure virtual] |
Returns the number of uniforms stored in this object.
The returned value is always >= 0.
Implemented in CShader.
virtual CUniform IUniformState::getUniform | ( | int | index | ) | [pure virtual] |
Returns an indexed uniform.
If the index is out of range, a CUniform object with undefined content will be returned.
index | Zero based index to a uniform. The maximum possible index is n-1 where n is the value returned by getActiveUniforms(). |
Implemented in CShader.
virtual void IUniformState::setUniform | ( | int | index, | |
const CUniform & | u | |||
) | [pure virtual] |
Sets the uniform at a given index.
If the index is out of range, this call has no effect. If the new uniform has a different name or a different type or a different location like the uniform currently stored, this call has no effect.
index | Zero based index to a uniform. The maximum possible index is n-1 where n is the value returned by getActiveUniforms(). | |
u | The value the indexed uniform is set to. |
Implemented in CShader.