csShaderVariable Class Reference
Storage class for inheritable variables in the shader system. More...
#include <shadervar.h>
Inheritance diagram for csShaderVariable:

Public Types | |
enum | VariableType |
Data types able to be stored. More... | |
Public Methods | |
csShaderVariable (csStringID name) | |
Constructor. | |
VariableType | GetType () const |
Get type of data stored. | |
void | SetType (VariableType t) |
Set type (calling this after SetValue will cause undefined behaviour). | |
void | SetAccessor (iShaderVariableAccessor *a) |
Set an accessor to use when getting the value. | |
csStringID | GetName () const |
Get the name of the variable. | |
bool | GetValue (int &value) |
Retireve an int. | |
bool | GetValue (float &value) |
Retrieve a float. | |
bool | GetValue (csRGBpixel &value) |
Retrieve a color. | |
bool | GetValue (iTextureHandle *&value) |
Retrieve a texture handle. | |
bool | GetValue (iTextureWrapper *&value) |
Retrieve a texture wrapper. | |
bool | GetValue (iRenderBuffer *&value) |
Retrieve a iRenderBuffer. | |
bool | GetValue (csVector2 &value) |
Retireve a csVector2. | |
bool | GetValue (csVector3 &value) |
Retrieve a csVector3. | |
bool | GetValue (csVector4 &value) |
Retrieve a csVector4. | |
bool | GetValue (csMatrix3 &value) |
Retrieve a csMatrix3. | |
bool | SetValue (int value) |
Store an int. | |
bool | SetValue (float value) |
Store a float. | |
bool | SetValue (const csRGBpixel &value) |
Store a color. | |
bool | SetValue (iTextureHandle *value) |
Store a texture handle. | |
bool | SetValue (iTextureWrapper *value) |
Store a texture wrapper. | |
bool | SetValue (iRenderBuffer *value) |
Store a render buffer. | |
bool | SetValue (const csVector2 &value) |
Store a csVector2. | |
bool | SetValue (const csVector3 &value) |
Store a csVector3. | |
bool | SetValue (const csVector4 &value) |
Store a csVector4. | |
bool | SetValue (const csMatrix3 &value) |
Store a csMatrix3. |
Detailed Description
Storage class for inheritable variables in the shader system.
Definition at line 59 of file shadervar.h.
Member Enumeration Documentation
|
Data types able to be stored.
Definition at line 63 of file shadervar.h. |
Constructor & Destructor Documentation
|
Constructor.
|
Member Function Documentation
|
Get the name of the variable.
Definition at line 110 of file shadervar.h. References csStringID. |
|
Get type of data stored.
Definition at line 102 of file shadervar.h. |
|
Retrieve a csMatrix3.
Definition at line 190 of file shadervar.h. |
|
Retrieve a csVector4.
Definition at line 182 of file shadervar.h. |
|
Retrieve a csVector3.
Definition at line 174 of file shadervar.h. References csVector3::Set(), csVector4::x, csVector4::y, and csVector4::z. |
|
Retireve a csVector2.
Definition at line 166 of file shadervar.h. References csVector2::Set(), csVector4::x, and csVector4::y. |
|
Retrieve a iRenderBuffer.
Definition at line 158 of file shadervar.h. |
|
Retrieve a texture wrapper.
Definition at line 150 of file shadervar.h. |
|
Retrieve a texture handle.
Definition at line 140 of file shadervar.h. |
|
Retrieve a color.
Definition at line 129 of file shadervar.h. References csRGBpixel::alpha, csRGBpixel::blue, csRGBpixel::green, csRGBpixel::red, csVector4::w, csVector4::x, csVector4::y, and csVector4::z. |
|
Retrieve a float.
Definition at line 121 of file shadervar.h. References csVector4::x. |
|
Retireve an int.
Definition at line 113 of file shadervar.h. |
|
Set an accessor to use when getting the value.
Definition at line 107 of file shadervar.h. |
|
Set type (calling this after SetValue will cause undefined behaviour).
Definition at line 104 of file shadervar.h. |
|
Store a csMatrix3.
Definition at line 288 of file shadervar.h. |
|
Store a csVector4.
Definition at line 279 of file shadervar.h. References csVector4::Set(), csVector4::w, csVector4::x, csVector4::y, and csVector4::z. |
|
Store a csVector3.
Definition at line 270 of file shadervar.h. References csVector4::Set(), csVector3::x, csVector3::y, and csVector3::z. |
|
Store a csVector2.
Definition at line 261 of file shadervar.h. References csVector4::Set(), csVector2::x, and csVector2::y. |
|
Store a render buffer.
Definition at line 253 of file shadervar.h. |
|
Store a texture wrapper.
Definition at line 245 of file shadervar.h. |
|
Store a texture handle.
Definition at line 237 of file shadervar.h. |
|
Store a color.
Definition at line 226 of file shadervar.h. References csRGBpixel::alpha, csRGBpixel::blue, csRGBpixel::green, csRGBpixel::red, csVector4::w, csVector4::x, csVector4::y, and csVector4::z. |
|
Store a float.
Definition at line 217 of file shadervar.h. References csVector4::Set(). |
|
Store an int.
Definition at line 207 of file shadervar.h. References csVector4::Set(). |
The documentation for this class was generated from the following file:
- csgfx/shadervar.h
Generated for Crystal Space by doxygen 1.2.18