Uniform parameter class. More...
#include <OgreShaderParameter.h>

Public Member Functions | |
| 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, Real fAutoConstantData, size_t size) | |
| Class constructor. More... | |
| UniformParameter (GpuProgramParameters::AutoConstantType autoType, Real fAutoConstantData, size_t size, GpuConstantType type) | |
| Class constructor. More... | |
| UniformParameter (GpuProgramParameters::AutoConstantType autoType, size_t nAutoConstantData, size_t size) | |
| Class constructor. More... | |
| UniformParameter (GpuProgramParameters::AutoConstantType autoType, size_t nAutoConstantData, size_t size, GpuConstantType type) | |
| Class constructor. More... | |
| void | bind (GpuProgramParametersSharedPtr paramsPtr) |
| Bind this parameter to the corresponding GPU parameter. More... | |
| size_t | getAutoConstantIntData () const |
| Get auto constant int data of this parameter, in case it is auto constant parameter. More... | |
| Real | 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... | |
| 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... | |
| GpuConstantType | getType () const |
| Get the type of this parameter. More... | |
| uint16 | getVariability () const |
| Return the variability of this parameter. More... | |
| bool | isArray () const |
| Returns Whether this parameter is an array. 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... | |
| virtual bool | isConstParameter () const |
| Returns true if this instance is a ConstParameter otherwise false. 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 | operator delete (void *ptr) |
| void | operator delete (void *ptr, void *) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
| void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info More... | |
| void * | operator new (size_t sz) |
| void * | operator new (size_t sz, void *ptr) |
| placement operator new More... | |
| void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info More... | |
| void * | operator new[] (size_t sz) |
| 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 | setGpuParameter (const ColourValue &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 (const Matrix4 &val) |
| 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 double *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 | setSize (size_t size) |
| Sets the number of elements in the parameter (for arrays). More... | |
| virtual String | toString () const |
| Returns the string representation of this parameter. More... | |
Protected Attributes | |
| union { | |
| size_t mAutoConstantIntData | |
| Real mAutoConstantRealData | |
| }; | |
| GpuProgramParameters::AutoConstantType | mAutoConstantType |
| Content | mContent |
| int | mIndex |
| bool | mIsAutoConstantInt |
| bool | mIsAutoConstantReal |
| String | mName |
| GpuProgramParameters * | mParamsPtr |
| size_t | mPhysicalIndex |
| Semantic | mSemantic |
| size_t | mSize |
| GpuConstantType | mType |
| uint16 | mVariability |
Uniform parameter class.
Allow fast access to GPU parameter updates.
Definition at line 376 of file OgreShaderParameter.h.
| Ogre::RTShader::UniformParameter::UniformParameter | ( | GpuConstantType | type, |
| const String & | name, | ||
| const Semantic & | semantic, | ||
| int | index, | ||
| const Content & | content, | ||
| uint16 | variability, | ||
| size_t | size | ||
| ) |
Class constructor.
| type | The type of this parameter. |
| name | The name of this parameter. |
| semantic | The semantic of this parameter. |
| index | The index of this parameter. |
| content | The content of this parameter. |
| variability | How this parameter varies (bitwise combination of GpuProgramVariability). |
| size | number of elements in the parameter. |
| Ogre::RTShader::UniformParameter::UniformParameter | ( | GpuProgramParameters::AutoConstantType | autoType, |
| Real | fAutoConstantData, | ||
| size_t | size | ||
| ) |
Class constructor.
| autoType | The auto type of this parameter. |
| fAutoConstantData | The real data for this auto constant parameter. |
| size | number of elements in the parameter. |
| Ogre::RTShader::UniformParameter::UniformParameter | ( | GpuProgramParameters::AutoConstantType | autoType, |
| Real | fAutoConstantData, | ||
| size_t | size, | ||
| GpuConstantType | type | ||
| ) |
Class constructor.
| autoType | The auto type of this parameter. |
| fAutoConstantData | The real data for this auto constant parameter. |
| size | number of elements in the parameter. |
| type | The desired data type of this auto constant parameter. |
| Ogre::RTShader::UniformParameter::UniformParameter | ( | GpuProgramParameters::AutoConstantType | autoType, |
| size_t | nAutoConstantData, | ||
| size_t | size | ||
| ) |
Class constructor.
| autoType | The auto type of this parameter. |
| nAutoConstantData | The int data for this auto constant parameter. |
| size | number of elements in the parameter. |
| Ogre::RTShader::UniformParameter::UniformParameter | ( | GpuProgramParameters::AutoConstantType | autoType, |
| size_t | nAutoConstantData, | ||
| size_t | size, | ||
| GpuConstantType | type | ||
| ) |
Class constructor.
| autoType | The auto type of this parameter. |
| nAutoConstantData | The int data for this auto constant parameter. |
| size | number of elements in the parameter. |
| type | The desired data type of this auto constant parameter. |
| void Ogre::RTShader::UniformParameter::bind | ( | GpuProgramParametersSharedPtr | paramsPtr | ) |
Bind this parameter to the corresponding GPU parameter.
| size_t Ogre::RTShader::UniformParameter::getAutoConstantIntData | ( | ) | const |
Get auto constant int data of this parameter, in case it is auto constant parameter.
Definition at line 426 of file OgreShaderParameter.h.
| Real Ogre::RTShader::UniformParameter::getAutoConstantRealData | ( | ) | const |
Get auto constant real data of this parameter, in case it is auto constant parameter.
Definition at line 429 of file OgreShaderParameter.h.
| GpuProgramParameters::AutoConstantType Ogre::RTShader::UniformParameter::getAutoConstantType | ( | ) | const |
Return the auto constant type of this parameter.
Definition at line 447 of file OgreShaderParameter.h.
|
inherited |
Return the content of this parameter.
Definition at line 335 of file OgreShaderParameter.h.
|
inherited |
Get the index of this parameter.
Definition at line 332 of file OgreShaderParameter.h.
|
inherited |
Get the name of this parameter.
Definition at line 323 of file OgreShaderParameter.h.
|
inherited |
Get the semantic of this parameter.
Definition at line 329 of file OgreShaderParameter.h.
|
inherited |
Returns the number of elements in the parameter (for arrays).
Definition at line 347 of file OgreShaderParameter.h.
|
inherited |
Get the type of this parameter.
Definition at line 326 of file OgreShaderParameter.h.
| uint16 Ogre::RTShader::UniformParameter::getVariability | ( | ) | const |
Return the variability of this parameter.
Definition at line 450 of file OgreShaderParameter.h.
|
inherited |
Returns Whether this parameter is an array.
Definition at line 344 of file OgreShaderParameter.h.
| bool Ogre::RTShader::UniformParameter::isAutoConstantIntParameter | ( | ) | const |
Return true if this parameter an auto constant with int data type, false otherwise.
Definition at line 441 of file OgreShaderParameter.h.
| bool Ogre::RTShader::UniformParameter::isAutoConstantParameter | ( | ) | const |
Return true if this parameter is an auto constant parameter, false otherwise.
Definition at line 438 of file OgreShaderParameter.h.
| bool Ogre::RTShader::UniformParameter::isAutoConstantRealParameter | ( | ) | const |
Return true if this parameter an auto constant with real data type, false otherwise.
Definition at line 444 of file OgreShaderParameter.h.
|
virtualinherited |
Returns true if this instance is a ConstParameter otherwise false.
Reimplemented in Ogre::RTShader::ConstParameter< valueType >.
Definition at line 338 of file OgreShaderParameter.h.
| bool Ogre::RTShader::UniformParameter::isFloat | ( | ) | const |
Return true if this parameter is a floating point type, false otherwise.
| bool Ogre::RTShader::UniformParameter::isSampler | ( | ) | const |
Return true if this parameter is a texture sampler type, false otherwise.
|
inherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
| void Ogre::RTShader::UniformParameter::setGpuParameter | ( | int | val | ) |
Update the GPU parameter with the given value.
Definition at line 458 of file OgreShaderParameter.h.
| void Ogre::RTShader::UniformParameter::setGpuParameter | ( | Real | val | ) |
Update the GPU parameter with the given value.
Definition at line 467 of file OgreShaderParameter.h.
| void Ogre::RTShader::UniformParameter::setGpuParameter | ( | const ColourValue & | val | ) |
Update the GPU parameter with the given value.
Definition at line 476 of file OgreShaderParameter.h.
| void Ogre::RTShader::UniformParameter::setGpuParameter | ( | const Vector2 & | val | ) |
Update the GPU parameter with the given value.
Definition at line 485 of file OgreShaderParameter.h.
References Ogre::Vector2::ptr().
| void Ogre::RTShader::UniformParameter::setGpuParameter | ( | const Vector3 & | val | ) |
Update the GPU parameter with the given value.
Definition at line 494 of file OgreShaderParameter.h.
| void Ogre::RTShader::UniformParameter::setGpuParameter | ( | const Vector4 & | val | ) |
Update the GPU parameter with the given value.
Definition at line 503 of file OgreShaderParameter.h.
| void Ogre::RTShader::UniformParameter::setGpuParameter | ( | const Matrix4 & | val | ) |
Update the GPU parameter with the given value.
Definition at line 512 of file OgreShaderParameter.h.
| void Ogre::RTShader::UniformParameter::setGpuParameter | ( | const float * | val, |
| size_t | count, | ||
| size_t | multiple = 4 |
||
| ) |
Update the GPU parameter with the given value.
Definition at line 521 of file OgreShaderParameter.h.
| void Ogre::RTShader::UniformParameter::setGpuParameter | ( | const double * | val, |
| size_t | count, | ||
| size_t | multiple = 4 |
||
| ) |
Update the GPU parameter with the given value.
Definition at line 530 of file OgreShaderParameter.h.
| void Ogre::RTShader::UniformParameter::setGpuParameter | ( | const int * | val, |
| size_t | count, | ||
| size_t | multiple = 4 |
||
| ) |
Update the GPU parameter with the given value.
Definition at line 539 of file OgreShaderParameter.h.
|
inherited |
Sets the number of elements in the parameter (for arrays).
Definition at line 350 of file OgreShaderParameter.h.
|
virtualinherited |
Returns the string representation of this parameter.
Reimplemented in Ogre::RTShader::ConstParameter< valueType >.
Definition at line 341 of file OgreShaderParameter.h.
| union { ... } |
| size_t Ogre::RTShader::UniformParameter::mAutoConstantIntData |
Definition at line 556 of file OgreShaderParameter.h.
| Real Ogre::RTShader::UniformParameter::mAutoConstantRealData |
Definition at line 558 of file OgreShaderParameter.h.
|
protected |
Definition at line 552 of file OgreShaderParameter.h.
|
protectedinherited |
Definition at line 363 of file OgreShaderParameter.h.
|
protectedinherited |
Definition at line 361 of file OgreShaderParameter.h.
|
protected |
Definition at line 551 of file OgreShaderParameter.h.
|
protected |
Definition at line 549 of file OgreShaderParameter.h.
|
protectedinherited |
Definition at line 355 of file OgreShaderParameter.h.
|
protected |
Definition at line 563 of file OgreShaderParameter.h.
|
protected |
Definition at line 565 of file OgreShaderParameter.h.
|
protectedinherited |
Definition at line 359 of file OgreShaderParameter.h.
|
protectedinherited |
Definition at line 365 of file OgreShaderParameter.h.
|
protectedinherited |
Definition at line 357 of file OgreShaderParameter.h.
|
protected |
Definition at line 561 of file OgreShaderParameter.h.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Wed Apr 22 2015 18:15:51