Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Ogre::PassTranslator Class Reference

#include <OgreScriptTranslator.h>

Inheritance diagram for Ogre::PassTranslator:
Inheritance graph
[legend]

Public Member Functions

 PassTranslator ()
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info
 
voidoperator new (size_t sz, void *ptr)
 placement operator new
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
 
void translate (ScriptCompiler *compiler, const AbstractNodePtr &node)
 This function translates the given node into Ogre resource(s).
 

Protected Member Functions

void processNode (ScriptCompiler *compiler, const AbstractNodePtr &node)
 Retrieves a new translator from the factories and uses it to process the give node.
 
void translateComputeProgramRef (ScriptCompiler *compiler, ObjectAbstractNode *node)
 
void translateFragmentProgramRef (ScriptCompiler *compiler, ObjectAbstractNode *node)
 
void translateGeometryProgramRef (ScriptCompiler *compiler, ObjectAbstractNode *node)
 
void translateShadowCasterFragmentProgramRef (ScriptCompiler *compiler, ObjectAbstractNode *node)
 
void translateShadowCasterVertexProgramRef (ScriptCompiler *compiler, ObjectAbstractNode *node)
 
void translateShadowReceiverFragmentProgramRef (ScriptCompiler *compiler, ObjectAbstractNode *node)
 
void translateShadowReceiverVertexProgramRef (ScriptCompiler *compiler, ObjectAbstractNode *node)
 
void translateTesselationDomainProgramRef (ScriptCompiler *compiler, ObjectAbstractNode *node)
 
void translateTesselationHullProgramRef (ScriptCompiler *compiler, ObjectAbstractNode *node)
 
void translateVertexProgramRef (ScriptCompiler *compiler, ObjectAbstractNode *node)
 

Static Protected Member Functions

static bool getBoolean (const AbstractNodePtr &node, bool *result)
 Converts the node to a boolean 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.
 
static bool getCompareFunction (const AbstractNodePtr &node, CompareFunction *func)
 Converts the node to a CompareFunction enum and returns true if successful.
 
static bool getConstantType (AbstractNodeList::const_iterator i, GpuConstantType *op)
 Converts the node to a GpuConstantType enum 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 getFloats (AbstractNodeList::const_iterator i, AbstractNodeList::const_iterator end, float *vals, int count)
 Converts the range of nodes to an array of floats 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 getInts (AbstractNodeList::const_iterator i, AbstractNodeList::const_iterator end, int *vals, int count)
 Converts the range of nodes to an array of ints and returns true if successful.
 
static bool getMatrix4 (AbstractNodeList::const_iterator i, AbstractNodeList::const_iterator end, Matrix4 *m)
 Converts the range of nodes to a Matrix4 and returns true if successful.
 
static AbstractNodeList::const_iterator getNodeAt (const AbstractNodeList &nodes, int index)
 Retrieves the node iterator at the given index.
 
static bool getReal (const AbstractNodePtr &node, Real *result)
 Converts the node to a Real and returns true if successful.
 
static bool getSceneBlendFactor (const AbstractNodePtr &node, SceneBlendFactor *sbf)
 Converts the node to a SceneBlendFactor enum and returns true if successful.
 
static bool getStencilOp (const AbstractNodePtr &node, StencilOperation *op)
 Converts the node to a StencilOperation enum 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 getUInt (const AbstractNodePtr &node, uint32 *result)
 Converts the node to an unsigned integer and returns true if successful.
 

Protected Attributes

PassmPass
 

Detailed Description

Definition at line 135 of file OgreScriptTranslator.h.

Constructor & Destructor Documentation

◆ PassTranslator()

Ogre::PassTranslator::PassTranslator ( )

Member Function Documentation

◆ getBoolean()

static bool Ogre::ScriptTranslator::getBoolean ( const AbstractNodePtr node,
bool result 
)
staticprotectedinherited

Converts the node to a boolean and returns true if successful.

◆ getColour()

static bool Ogre::ScriptTranslator::getColour ( AbstractNodeList::const_iterator  i,
AbstractNodeList::const_iterator  end,
ColourValue result,
int  maxEntries = 4 
)
staticprotectedinherited

Converts the range of nodes to a ColourValue and returns true if successful.

◆ getCompareFunction()

static bool Ogre::ScriptTranslator::getCompareFunction ( const AbstractNodePtr node,
CompareFunction func 
)
staticprotectedinherited

Converts the node to a CompareFunction enum and returns true if successful.

◆ getConstantType()

static bool Ogre::ScriptTranslator::getConstantType ( AbstractNodeList::const_iterator  i,
GpuConstantType op 
)
staticprotectedinherited

Converts the node to a GpuConstantType enum and returns true if successful.

◆ getFloat()

static bool Ogre::ScriptTranslator::getFloat ( const AbstractNodePtr node,
float result 
)
staticprotectedinherited

Converts the node to a float and returns true if successful.

◆ getFloats()

static bool Ogre::ScriptTranslator::getFloats ( AbstractNodeList::const_iterator  i,
AbstractNodeList::const_iterator  end,
float vals,
int  count 
)
staticprotectedinherited

Converts the range of nodes to an array of floats and returns true if successful.

◆ getInt()

static bool Ogre::ScriptTranslator::getInt ( const AbstractNodePtr node,
int result 
)
staticprotectedinherited

Converts the node to an integer and returns true if successful.

◆ getInts()

static bool Ogre::ScriptTranslator::getInts ( AbstractNodeList::const_iterator  i,
AbstractNodeList::const_iterator  end,
int vals,
int  count 
)
staticprotectedinherited

Converts the range of nodes to an array of ints and returns true if successful.

◆ getMatrix4()

static bool Ogre::ScriptTranslator::getMatrix4 ( AbstractNodeList::const_iterator  i,
AbstractNodeList::const_iterator  end,
Matrix4 m 
)
staticprotectedinherited

Converts the range of nodes to a Matrix4 and returns true if successful.

◆ getNodeAt()

static AbstractNodeList::const_iterator Ogre::ScriptTranslator::getNodeAt ( const AbstractNodeList nodes,
int  index 
)
staticprotectedinherited

Retrieves the node iterator at the given index.

◆ getReal()

static bool Ogre::ScriptTranslator::getReal ( const AbstractNodePtr node,
Real result 
)
staticprotectedinherited

Converts the node to a Real and returns true if successful.

◆ getSceneBlendFactor()

static bool Ogre::ScriptTranslator::getSceneBlendFactor ( const AbstractNodePtr node,
SceneBlendFactor sbf 
)
staticprotectedinherited

Converts the node to a SceneBlendFactor enum and returns true if successful.

◆ getStencilOp()

static bool Ogre::ScriptTranslator::getStencilOp ( const AbstractNodePtr node,
StencilOperation op 
)
staticprotectedinherited

Converts the node to a StencilOperation enum and returns true if successful.

◆ getString()

static bool Ogre::ScriptTranslator::getString ( const AbstractNodePtr node,
String result 
)
staticprotectedinherited

Converts the node to a string and returns true if successful.

◆ getUInt()

static bool Ogre::ScriptTranslator::getUInt ( const AbstractNodePtr node,
uint32 result 
)
staticprotectedinherited

Converts the node to an unsigned integer and returns true if successful.

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr)
inherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
const char ,
int  ,
const char  
)
inherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
void  
)
inherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr)
inherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr,
const char ,
int  ,
const char  
)
inherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

◆ operator new() [1/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

◆ operator new() [2/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char file,
int  line,
const char func 
)
inherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

◆ operator new() [3/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void ptr 
)
inherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [1/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [2/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char file,
int  line,
const char func 
)
inherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

◆ processNode()

void Ogre::ScriptTranslator::processNode ( ScriptCompiler compiler,
const AbstractNodePtr node 
)
protectedinherited

Retrieves a new translator from the factories and uses it to process the give node.

◆ translate()

void Ogre::PassTranslator::translate ( ScriptCompiler compiler,
const AbstractNodePtr node 
)
virtual

This function translates the given node into Ogre resource(s).

Parameters
compilerThe compiler invoking this translator
nodeThe current AST node to be translated

Implements Ogre::ScriptTranslator.

◆ translateComputeProgramRef()

void Ogre::PassTranslator::translateComputeProgramRef ( ScriptCompiler compiler,
ObjectAbstractNode node 
)
protected

◆ translateFragmentProgramRef()

void Ogre::PassTranslator::translateFragmentProgramRef ( ScriptCompiler compiler,
ObjectAbstractNode node 
)
protected

◆ translateGeometryProgramRef()

void Ogre::PassTranslator::translateGeometryProgramRef ( ScriptCompiler compiler,
ObjectAbstractNode node 
)
protected

◆ translateShadowCasterFragmentProgramRef()

void Ogre::PassTranslator::translateShadowCasterFragmentProgramRef ( ScriptCompiler compiler,
ObjectAbstractNode node 
)
protected

◆ translateShadowCasterVertexProgramRef()

void Ogre::PassTranslator::translateShadowCasterVertexProgramRef ( ScriptCompiler compiler,
ObjectAbstractNode node 
)
protected

◆ translateShadowReceiverFragmentProgramRef()

void Ogre::PassTranslator::translateShadowReceiverFragmentProgramRef ( ScriptCompiler compiler,
ObjectAbstractNode node 
)
protected

◆ translateShadowReceiverVertexProgramRef()

void Ogre::PassTranslator::translateShadowReceiverVertexProgramRef ( ScriptCompiler compiler,
ObjectAbstractNode node 
)
protected

◆ translateTesselationDomainProgramRef()

void Ogre::PassTranslator::translateTesselationDomainProgramRef ( ScriptCompiler compiler,
ObjectAbstractNode node 
)
protected

◆ translateTesselationHullProgramRef()

void Ogre::PassTranslator::translateTesselationHullProgramRef ( ScriptCompiler compiler,
ObjectAbstractNode node 
)
protected

◆ translateVertexProgramRef()

void Ogre::PassTranslator::translateVertexProgramRef ( ScriptCompiler compiler,
ObjectAbstractNode node 
)
protected

Member Data Documentation

◆ mPass

Pass* Ogre::PassTranslator::mPass
protected

Definition at line 138 of file OgreScriptTranslator.h.


The documentation for this class was generated from the following file:

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.