![]() |
Public API Reference |
#include <shadervar.h>
Inheritance diagram for csShaderVariable:
Public Types | |
enum | VariableType |
Data types able to be stored. More... | |
Public Methods | |
csShaderVariable (csStringID name) | |
Constructor. More... | |
VariableType | GetType () const |
Get type of data stored. More... | |
void | SetType (VariableType t) |
Set type (calling this after SetValue will cause undefined behaviour). More... | |
csStringID | GetName () const |
Get the name of the variable. More... | |
bool | GetValue (int &value) const |
Retireve an int. More... | |
bool | GetValue (float &value) const |
Retrieve a float. More... | |
bool | GetValue (iString *&value) const |
Retrieve a string. More... | |
bool | GetValue (csRGBpixel &value) const |
Retrieve a color. More... | |
bool | GetValue (iTextureHandle *&value) const |
Retrieve a texture handle. More... | |
bool | GetValue (iTextureWrapper *&value) const |
Retrieve a texture wrapper. More... | |
bool | GetValue (csVector2 &value) const |
Retireve a csVector2. More... | |
bool | GetValue (csVector3 &value) const |
Retrieve a csVector3. More... | |
bool | GetValue (csVector4 &value) const |
Retrieve a csVector4. More... | |
bool | SetValue (int value) |
Store an int. More... | |
bool | SetValue (float value) |
Store a float. More... | |
bool | SetValue (iString *value) |
Store a string. More... | |
bool | SetValue (const csRGBpixel &value) |
Store a color. More... | |
bool | SetValue (iTextureHandle *value) |
Store a texture handle. More... | |
bool | SetValue (iTextureWrapper *value) |
Store a texture wrapper. More... | |
bool | SetValue (const csVector2 &value) |
Store a csVector2. More... | |
bool | SetValue (const csVector3 &value) |
Store a csVector3. More... | |
bool | SetValue (const csVector4 &value) |
Store a csVector4. More... |
Definition at line 36 of file shadervar.h.
|
Data types able to be stored.
Definition at line 40 of file shadervar.h. |
|
Constructor.
|
|
Get the name of the variable.
Definition at line 73 of file shadervar.h. References csStringID. Referenced by csMaterial::AddVariable. |
|
Get type of data stored.
Definition at line 68 of file shadervar.h. References VariableType. |
|
Retrieve a csVector4.
|
|
Retrieve a csVector3.
|
|
Retireve a csVector2.
|
|
Retrieve a texture wrapper.
|
|
Retrieve a texture handle.
|
|
Retrieve a color.
|
|
Retrieve a string.
|
|
Retrieve a float.
|
|
Retireve an int.
|
|
Set type (calling this after SetValue will cause undefined behaviour).
Definition at line 70 of file shadervar.h. References VariableType. |
|
Store a csVector4.
|
|
Store a csVector3.
|
|
Store a csVector2.
|
|
Store a texture wrapper.
|
|
Store a texture handle.
|
|
Store a color.
|
|
Store a string.
|
|
Store a float.
|
|
Store an int.
|