OGRE
13.6
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... | |
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. 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... | |
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... | |
Helper template which is the base for our ConstParameters.
|
inline |
|
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.