![]() |
OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Helper template which is the base for our ConstParameters. More...
#include <OgreShaderParameter.h>
Inheritance diagram for Ogre::RTShader::ConstParameter< valueType >:Public Member Functions | |
| ConstParameter (valueType val, GpuConstantType type, const Semantic &semantic, const Content &content) | |
| virtual | ~ConstParameter () |
| const valueType & | getValue () const |
| Returns the native value of this parameter. | |
| bool | isConstParameter () const override |
| String | toString () const override=0 |
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. | |
| 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 | |
Helper template which is the base for our ConstParameters.
|
inline |
References Ogre::RTShader::Parameter::Parameter().
|
inlinevirtual |
|
inline |
Returns the native value of this parameter.
(for example a Vector3)
|
inlineoverridevirtual |
Reimplemented from Ogre::RTShader::Parameter.
|
overridepure virtual |
Reimplemented from Ogre::RTShader::Parameter.