![]() |
OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Uniform parameter class. More...
#include <OgreShaderParameter.h>
Inheritance diagram for Ogre::RTShader::UniformParameter:Public Member Functions | |
| UniformParameter (GpuConstantType type, const String &name, const Semantic &semantic, int index, const Content &content, uint16 variability, size_t size) | |
| Class constructor. | |
| UniformParameter (GpuProgramParameters::AutoConstantType autoType, float fAutoConstantData, size_t size) | |
| Class constructor. | |
| UniformParameter (GpuProgramParameters::AutoConstantType autoType, float fAutoConstantData, size_t size, GpuConstantType type) | |
| Class constructor. | |
| UniformParameter (GpuProgramParameters::AutoConstantType autoType, uint32 nAutoConstantData, size_t size) | |
| Class constructor. | |
| UniformParameter (GpuProgramParameters::AutoConstantType autoType, uint32 nAutoConstantData, size_t size, GpuConstantType type) | |
| Class constructor. | |
| void | bind (GpuProgramParametersSharedPtr paramsPtr) |
| Bind this parameter to the corresponding GPU parameter. | |
| uint32 | getAutoConstantIntData () const |
| Get auto constant int data of this parameter, in case it is auto constant parameter. | |
| float | getAutoConstantRealData () const |
| Get auto constant real data of this parameter, in case it is auto constant parameter. | |
| GpuProgramParameters::AutoConstantType | getAutoConstantType () const |
| Return the auto constant type of this parameter. | |
| uint16 | getVariability () const |
| Return the variability of this parameter. | |
| bool | isAutoConstantIntParameter () const |
| Return true if this parameter an auto constant with int data type, false otherwise. | |
| bool | isAutoConstantParameter () const |
| Return true if this parameter is an auto constant parameter, false otherwise. | |
| bool | isAutoConstantRealParameter () const |
| Return true if this parameter an auto constant with real data type, false otherwise. | |
| bool | isFloat () const |
| Return true if this parameter is a floating point type, false otherwise. | |
| bool | isSampler () const |
| Return true if this parameter is a texture sampler type, false otherwise. | |
| void | setGpuParameter (const ColourValue &val) |
| Update the GPU parameter with the given value. | |
| void | setGpuParameter (const double *val, size_t count, size_t multiple=4) |
| Update the GPU parameter with the given value. | |
| void | setGpuParameter (const float *val, size_t count, size_t multiple=4) |
| Update the GPU parameter with the given value. | |
| void | setGpuParameter (const int *val, size_t count, size_t multiple=4) |
| Update the GPU parameter with the given value. | |
| void | setGpuParameter (const Matrix3 &val) |
| void | setGpuParameter (const Matrix4 &val) |
| Update the GPU parameter with the given value. | |
| void | setGpuParameter (const Vector2 &val) |
| Update the GPU parameter with the given value. | |
| void | setGpuParameter (const Vector3 &val) |
| Update the GPU parameter with the given value. | |
| void | setGpuParameter (const Vector4 &val) |
| Update the GPU parameter with the given value. | |
| void | setGpuParameter (int val) |
| Update the GPU parameter with the given value. | |
| void | setGpuParameter (Real val) |
| Update the GPU parameter with the given value. | |
| void | updateExtraInfo (uint32 data) |
| light index or array size | |
Public Member Functions inherited from Ogre::RTShader::Parameter | |
| Parameter () | |
| Parameter (GpuConstantType type, const String &name, const Semantic &semantic, int index, const Content &content, size_t size=0) | |
| Class constructor. | |
| virtual | ~Parameter () |
| Class destructor. | |
| void | _rename (const String &newName, bool onlyLocal=false) |
| internal function for aliasing to GLSL builtins e.g. gl_Position | |
| Content | getContent () const |
| Return the content of this parameter. | |
| int | getIndex () const |
| Get the index of this parameter. | |
| const String & | getName () const |
| Get the name of this parameter. | |
| const Semantic & | getSemantic () const |
| Get the semantic of this parameter. | |
| size_t | getSize () const |
| Returns the number of elements in the parameter (for arrays). | |
| const String & | getStructType () const |
| GpuConstantType | getType () const |
| Get the type of this parameter. | |
| bool | isArray () const |
| Returns Whether this parameter is an array. | |
| virtual bool | isConstParameter () const |
| Returns true if this instance is a ConstParameter otherwise false. | |
| bool | isHighP () const |
| Is highp needed when using GLSL ES. | |
| bool | isUsed () |
| void | setHighP (bool highP) |
| void | setSize (size_t size) |
| Sets the number of elements in the parameter (for arrays). | |
| void | setStructType (const String &structType) |
| void | setUsed (bool used) |
| track whether this was used | |
| virtual String | toString () const |
| Returns the string representation of this parameter. | |
Uniform parameter class.
Allow fast access to GPU parameter updates.
| 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, |
| float | 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, |
| float | 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, |
| uint32 | 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, |
| uint32 | 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. |
|
inline |
Get auto constant int data of this parameter, in case it is auto constant parameter.
References Ogre::RTShader::Parameter::getSize(), Ogre::RTShader::Parameter::isArray(), and mAutoConstantIntData.
|
inline |
Get auto constant real data of this parameter, in case it is auto constant parameter.
References mAutoConstantRealData.
|
inline |
Return true if this parameter is a floating point type, false otherwise.
References Ogre::GpuConstantDefinition::isFloat().
|
inline |
Return true if this parameter is a texture sampler type, false otherwise.
References Ogre::GpuConstantDefinition::isSampler().
|
inline |
Return true if this parameter is an auto constant parameter, false otherwise.
|
inline |
Return true if this parameter an auto constant with int data type, false otherwise.
|
inline |
Return true if this parameter an auto constant with real data type, false otherwise.
|
inline |
Return the auto constant type of this parameter.
|
inline |
Return the variability of this parameter.
| void Ogre::RTShader::UniformParameter::bind | ( | GpuProgramParametersSharedPtr | paramsPtr | ) |
Bind this parameter to the corresponding GPU parameter.
|
inline |
Update the GPU parameter with the given value.
|
inline |
Update the GPU parameter with the given value.
|
inline |
Update the GPU parameter with the given value.
|
inline |
Update the GPU parameter with the given value.
References Ogre::VectorBase< dims, T >::ptr().
|
inline |
Update the GPU parameter with the given value.
|
inline |
Update the GPU parameter with the given value.
|
inline |
|
inline |
Update the GPU parameter with the given value.
|
inline |
Update the GPU parameter with the given value.
|
inline |
Update the GPU parameter with the given value.
|
inline |
Update the GPU parameter with the given value.
|
inline |
light index or array size
| uint32 Ogre::RTShader::UniformParameter::mAutoConstantIntData |
Referenced by getAutoConstantIntData().
| float Ogre::RTShader::UniformParameter::mAutoConstantRealData |
Referenced by getAutoConstantRealData().