Go to the documentation of this file.
27 #ifndef _ShaderScriptTranslator_
28 #define _ShaderScriptTranslator_
131 const String& dstTechniqueSchemeName,
const String& materialName,
132 const String& groupName,
unsigned short passIndex);
static bool getReal(const AbstractNodePtr &node, Real *result)
Converts the node to a Real and returns true if successful.
This class translates script AST (abstract syntax tree) into Ogre resources.
static bool getColour(AbstractNodeList::const_iterator i, AbstractNodeList::const_iterator end, ColourValue *result, int maxEntries=4)
Converts the range of nodes to a ColourValue and returns true if successful.
This class is the base interface of sub part from a shader based rendering pipeline.
void translatePass(ScriptCompiler *compiler, const AbstractNodePtr &node)
Translates RT Shader System section within a pass context.
static bool getInt(const AbstractNodePtr &node, int *result)
Converts the node to an integer and returns true if successful.
static bool getUInt(const AbstractNodePtr &node, uint32 *result)
Converts the node to an unsigned integer and returns true if successful.
static bool getString(const AbstractNodePtr &node, String *result)
Converts the node to a string and returns true if successful.
This is the main class for the compiler.
This is a container class for sub render state class.
void translateTextureUnit(ScriptCompiler *compiler, const AbstractNodePtr &node)
Translates RT Shader System section within a texture_unit context.
virtual SubRenderState * getGeneratedSubRenderState(const String &typeName)
Returns a sub render state of a given name which has already been created for material currently bein...
Reference-counted shared pointer, used for objects where implicit destruction is required.
void addSubRenderState(SubRenderState *newSubRenderState, const String &dstTechniqueSchemeName, const String &materialName, const String &groupName, unsigned short passIndex)
Adds a newly created subrender state to the material being translated.
static bool getBoolean(const AbstractNodePtr &node, bool *result)
Converts the node to a boolean and returns true if successful.
virtual void translate(ScriptCompiler *compiler, const AbstractNodePtr &node)
This class responsible for translating core features of the RT Shader System for Ogre material script...
RenderState * mGeneratedRenderState
static bool getFloat(const AbstractNodePtr &node, float *result)
Converts the node to a float and returns true if successful.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.