LangElement

Engine/source/shaderGen/langElement.h

More...

Public Static Attributes

Public Attributes

name [32]

Public Static Functions

Public Functions

print(Stream & stream)
setName(const char * newName)

Detailed Description

The LangElement class is the base building block for procedurally generated shader code. LangElement and its subclasses are strung together using the static Vector 'elementList'. When a shader needs to be written to disk, the elementList is traversed and print() is called on each LangElement and the shader is output. elementList is cleared after each shader is printed out.

Public Static Attributes

Vector< LangElement * > elementList 

Public Attributes

U8 name [32]

Public Static Functions

deleteElements()

find(const char * name)

Public Functions

LangElement()

~LangElement()

print(Stream & stream)

Reimplemented by: Var, MultiLine, DecOp, EchoOp, IndexOp, GenOp

setName(const char * newName)