LangElement Struct Reference

#include <langElement.h>

Inheritance diagram for LangElement:

Inheritance graph
[legend]
List of all members.

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 Member Functions

 LangElement ()
virtual ~LangElement ()
virtual void print (Stream &stream)
void setName (const char *newName)

Static Public Member Functions

static LangElementfind (const char *name)
static void deleteElements ()

Public Attributes

U8 name [32]

Static Public Attributes

static Vector< LangElement * > elementList


Constructor & Destructor Documentation

LangElement::LangElement (  ) 

virtual LangElement::~LangElement (  )  [inline, virtual]


Member Function Documentation

static LangElement* LangElement::find ( const char *  name  )  [static]

static void LangElement::deleteElements (  )  [static]

virtual void LangElement::print ( Stream stream  )  [inline, virtual]

Reimplemented in Var, MultiLine, DecOp, EchoOp, and GenOp.

void LangElement::setName ( const char *  newName  ) 


Member Data Documentation