OGRE
13.6
Object-Oriented Graphics Rendering Engine
|
A class that represents function invocation code from shader based program function. More...
#include <OgreShaderFunctionAtom.h>
Classes | |
struct | FunctionInvocationCompare |
Comparator function to be used for comparisons. More... | |
struct | FunctionInvocationLessThan |
Comparator function to be used for sorting. More... | |
Public Member Functions | |
FunctionInvocation (const FunctionInvocation &rhs) | |
Copy constructor. More... | |
FunctionInvocation (const String &functionName, int groupOrder, const String &returnType="void") | |
Class constructor. More... | |
const String & | getFunctionName () const |
Return the function name. More... | |
const String & | getReturnType () const |
Return the return type. More... | |
bool | operator!= (const FunctionInvocation &rhs) const |
Determines if the current object is not equal to the compared one. More... | |
bool | operator< (const FunctionInvocation &rhs) const |
Determines if the current object is less than the compared one. More... | |
bool | operator== (const FunctionInvocation &rhs) const |
Determines if the current object is equal to the compared one. More... | |
void | writeSourceCode (std::ostream &os, const String &targetLanguage) const override |
Public Member Functions inherited from Ogre::RTShader::FunctionAtom | |
virtual | ~FunctionAtom () |
Class default destructor. More... | |
int | getGroupExecutionOrder () const |
Get the group execution order of this function atom. More... | |
OperandVector & | getOperandList () |
Get a list of parameters this function invocation will use in the function call as arguments. More... | |
void | pushOperand (ParameterPtr parameter, Operand::OpSemantic opSemantic, Operand::OpMask opMask=Operand::OPM_ALL, int indirectionLevel=0) |
Push a new operand (on the end) to the function. More... | |
void | setOperands (const OperandVector &ops) |
Additional Inherited Members | |
Public Types inherited from Ogre::RTShader::FunctionAtom | |
typedef std::vector< Operand > | OperandVector |
A class that represents function invocation code from shader based program function.
Ogre::RTShader::FunctionInvocation::FunctionInvocation | ( | const String & | functionName, |
int | groupOrder, | ||
const String & | returnType = "void" |
||
) |
Class constructor.
functionName | The name of the function to invoke. |
groupOrder | The group order of this invocation. |
returnType | The return type of the used function. |
Ogre::RTShader::FunctionInvocation::FunctionInvocation | ( | const FunctionInvocation & | rhs | ) |
Copy constructor.
|
overridevirtual |
Implements Ogre::RTShader::FunctionAtom.
|
inline |
Return the function name.
|
inline |
Return the return type.
bool Ogre::RTShader::FunctionInvocation::operator== | ( | const FunctionInvocation & | rhs | ) | const |
Determines if the current object is equal to the compared one.
bool Ogre::RTShader::FunctionInvocation::operator!= | ( | const FunctionInvocation & | rhs | ) | const |
Determines if the current object is not equal to the compared one.
bool Ogre::RTShader::FunctionInvocation::operator< | ( | const FunctionInvocation & | rhs | ) | const |
Determines if the current object is less than the compared one.