IUniformState Class Reference

Stores a list of uniforms. More...

#include <uniform.h>

Inheritance diagram for IUniformState:

IShader CShader

List of all members.

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.


Detailed Description

Stores a list of uniforms.

The uniforms an be read and written. Uniforms can be accessed with a zero based index.


Member Function Documentation

virtual int IUniformState::getActiveUniforms ( void   )  [pure virtual]

Returns the number of uniforms stored in this object.

The returned value is always >= 0.

Returns:
The highest possible uniform index + 1.

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.

Parameters:
index Zero based index to a uniform. The maximum possible index is n-1 where n is the value returned by getActiveUniforms().
Returns:
Uniform at the given index.

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.

Parameters:
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.


The documentation for this class was generated from the following file:
Generated on Sun Mar 2 17:12:32 2008 for Shader Maker by  doxygen 1.5.4