OGRE
1.12.13
Object-Oriented Graphics Rendering Engine
|
Helper template which is the base for our ConstParameters. More...
#include <OgreShaderParameter.h>
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. More... | |
virtual bool | isConstParameter () const |
virtual String | toString () const =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. 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... | |
GpuConstantType | getType () const |
Get the type of this parameter. More... | |
bool | isArray () const |
Returns Whether this parameter is an array. More... | |
bool | isUsed () |
void | setSize (size_t size) |
Sets the number of elements in the parameter (for arrays). More... | |
void | setUsed (bool used) |
track whether this was used More... | |
Helper template which is the base for our ConstParameters.
|
inline |
|
inlinevirtual |
|
inline |
Returns the native value of this parameter.
(for example a Vector3)
|
inlinevirtual |
Reimplemented from Ogre::RTShader::Parameter.
|
pure virtual |
Reimplemented from Ogre::RTShader::Parameter.