27#ifndef _ShaderScriptTranslator_
28#define _ShaderScriptTranslator_
131 const String& dstTechniqueSchemeName,
const String& materialName,
132 const String& groupName,
unsigned short passIndex);
This is a container class for sub render state class.
This class is the base interface of sub part from a shader based rendering pipeline.
This is the main class for the compiler.
This class translates script AST (abstract syntax tree) into Ogre resources.
static bool getUInt(const AbstractNodePtr &node, uint32 *result)
Converts the node to an unsigned integer and returns true if successful.
static bool getBoolean(const AbstractNodePtr &node, bool *result)
Converts the node to a boolean and returns true if successful.
static bool getReal(const AbstractNodePtr &node, Real *result)
Converts the node to a Real and returns true if successful.
static bool getFloat(const AbstractNodePtr &node, float *result)
Converts the node to a float and returns true if successful.
static bool getInt(const AbstractNodePtr &node, int *result)
Converts the node to an 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.
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.
SharedPtr< AbstractNode > AbstractNodePtr
virtual void translate(ScriptCompiler *compiler, const AbstractNodePtr &node)
RenderState * mGeneratedRenderState
void translatePass(ScriptCompiler *compiler, const AbstractNodePtr &node)
Translates RT Shader System section within a pass 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...
void translateTextureUnit(ScriptCompiler *compiler, const AbstractNodePtr &node)
Translates RT Shader System section within a texture_unit context.
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.