|
| UniformParameter (GpuConstantType type, const String &name, const Semantic &semantic, int index, const Content &content, uint16 variability, size_t size) |
| Class constructor. More...
|
|
| UniformParameter (GpuProgramParameters::AutoConstantType autoType, float fAutoConstantData, size_t size) |
| Class constructor. More...
|
|
| UniformParameter (GpuProgramParameters::AutoConstantType autoType, float fAutoConstantData, size_t size, GpuConstantType type) |
| Class constructor. More...
|
|
| UniformParameter (GpuProgramParameters::AutoConstantType autoType, uint32 nAutoConstantData, size_t size) |
| Class constructor. More...
|
|
| UniformParameter (GpuProgramParameters::AutoConstantType autoType, uint32 nAutoConstantData, size_t size, GpuConstantType type) |
| Class constructor. More...
|
|
void | bind (GpuProgramParametersSharedPtr paramsPtr) |
| Bind this parameter to the corresponding GPU parameter. More...
|
|
uint32 | getAutoConstantIntData () const |
| Get auto constant int data of this parameter, in case it is auto constant parameter. More...
|
|
float | getAutoConstantRealData () const |
| Get auto constant real data of this parameter, in case it is auto constant parameter. More...
|
|
GpuProgramParameters::AutoConstantType | getAutoConstantType () const |
| Return the auto constant type of this parameter. More...
|
|
uint16 | getVariability () const |
| Return the variability of this parameter. More...
|
|
bool | isAutoConstantIntParameter () const |
| Return true if this parameter an auto constant with int data type, false otherwise. More...
|
|
bool | isAutoConstantParameter () const |
| Return true if this parameter is an auto constant parameter, false otherwise. More...
|
|
bool | isAutoConstantRealParameter () const |
| Return true if this parameter an auto constant with real data type, false otherwise. More...
|
|
bool | isFloat () const |
| Return true if this parameter is a floating point type, false otherwise. More...
|
|
bool | isSampler () const |
| Return true if this parameter is a texture sampler type, false otherwise. More...
|
|
void | setGpuParameter (const ColourValue &val) |
| Update the GPU parameter with the given value. More...
|
|
void | setGpuParameter (const double *val, size_t count, size_t multiple=4) |
| Update the GPU parameter with the given value. More...
|
|
void | setGpuParameter (const float *val, size_t count, size_t multiple=4) |
| Update the GPU parameter with the given value. More...
|
|
void | setGpuParameter (const int *val, size_t count, size_t multiple=4) |
| Update the GPU parameter with the given value. More...
|
|
void | setGpuParameter (const Matrix3 &val) |
|
void | setGpuParameter (const Matrix4 &val) |
| Update the GPU parameter with the given value. More...
|
|
void | setGpuParameter (const Vector2 &val) |
| Update the GPU parameter with the given value. More...
|
|
void | setGpuParameter (const Vector3 &val) |
| Update the GPU parameter with the given value. More...
|
|
void | setGpuParameter (const Vector4 &val) |
| Update the GPU parameter with the given value. More...
|
|
void | setGpuParameter (int val) |
| Update the GPU parameter with the given value. More...
|
|
void | setGpuParameter (Real val) |
| Update the GPU parameter with the given value. More...
|
|
void | updateExtraInfo (uint32 data) |
| light index or array size More...
|
|
| Parameter () |
|
| Parameter (GpuConstantType type, const String &name, const Semantic &semantic, int index, const Content &content, size_t size=0) |
| Class constructor. More...
|
|
virtual | ~Parameter () |
| Class destructor. More...
|
|
void | _rename (const String &newName, bool onlyLocal=false) |
| internal function for aliasing to GLSL builtins e.g. gl_Position More...
|
|
Content | getContent () const |
| Return the content of this parameter. More...
|
|
int | getIndex () const |
| Get the index of this parameter. More...
|
|
const String & | getName () const |
| Get the name of this parameter. More...
|
|
const Semantic & | getSemantic () const |
| Get the semantic of this parameter. More...
|
|
size_t | getSize () const |
| Returns the number of elements in the parameter (for arrays). More...
|
|
const String & | getStructType () const |
|
GpuConstantType | getType () const |
| Get the type of this parameter. More...
|
|
bool | isArray () const |
| Returns Whether this parameter is an array. More...
|
|
virtual bool | isConstParameter () const |
| Returns true if this instance is a ConstParameter otherwise false. More...
|
|
bool | isHighP () const |
| Is highp needed when using GLSL ES. More...
|
|
bool | isUsed () |
|
void | setHighP (bool highP) |
|
void | setSize (size_t size) |
| Sets the number of elements in the parameter (for arrays). More...
|
|
void | setStructType (const String &structType) |
|
void | setUsed (bool used) |
| track whether this was used More...
|
|
virtual String | toString () const |
| Returns the string representation of this parameter. More...
|
|
Uniform parameter class.
Allow fast access to GPU parameter updates.