Program Class Reference
[Basic]

GLSL program that Shaders and Uniform variables are connected to. More...

#include <Program.hpp>

Inheritance diagram for Program:
Node Applicable

List of all members.

Public Member Functions

 Program (const Tag &tag)
virtual void addCode (int handle, const Preprocessor *preprocessor)
virtual void addListener (NodeListener *listener, int type)
virtual void apply ()
virtual void associate ()
virtual void finalize ()
virtual GLuint getHandle () const
virtual void log () const
virtual void remove ()
virtual string toString () const

Static Public Member Functions

static Programfind (Node *node)
static ProgramgetCurrent ()

Private Attributes

GLuint handle
map< int, const Preprocessor * > code
NodeNotifier notifier
Programprevious

Static Private Attributes

static Programcurrent = NULL

Detailed Description

GLSL program that Shaders and Uniform variables are connected to.


Constructor & Destructor Documentation

Program ( const Tag tag  ) 

Creates a new Program from an XML tag.


Member Function Documentation

void addCode ( int  handle,
const Preprocessor preprocessor 
) [virtual]

Adds link to shader code so linkage errors can be parsed.

void addListener ( NodeListener listener,
int  type 
) [virtual]

Adds a listener to the program.

void apply (  )  [virtual]

Installs the program into the current context.

Implements Applicable.

void associate (  )  [virtual]

Creates the program and finds the previous program.

Reimplemented from Node.

void finalize (  )  [virtual]

Links the program once other nodes have associated with it.

Exceptions:
NodeException if the program cannot be linked.

Reimplemented from Node.

Program * find ( Node node  )  [static]

Finds a program by looking upwards starting at node.

Program * getCurrent (  )  [inline, static]
Returns:
Pointer to the active program
GLuint getHandle (  )  const [inline, virtual]
Returns:
Integer OpenGL identifies the program with.
void log (  )  const [virtual]

Prints the log for this program.

void remove (  )  [virtual]

Stop using this program and restore the previous one.

Implements Applicable.

string toString (  )  const [virtual]

Forms a string from the object's attributes.

Reimplemented from Node.


The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:36 2010 for Gander by  doxygen 1.6.3