LUVis::Program Class Reference

#include <Shader.h>

List of all members.

Public Member Functions

 Program (Shader^AShader)
 Program (Shader^AShader, Shader^BShader)
void bind ()
 bind the shaderprogram
void unbind ()
 unbind the shaderprogram
void destroy ()
 undbind an destroy the program
 ~Program (void)
int GetUniformLocation (System::String^name)

Private Member Functions

void attach (Shader^AShader)
void link ()
 links the program and the shader
void initialize ()
 initializes the program
void InfoLog ()
 helperfunction to recieve compilation errors

Private Attributes

GLuint Object
 program id
System::Collections::ArrayList ShaderList
 arraylist with all Shaders in the program


Detailed Description

Class Program Class for ShaderPrograms


Constructor & Destructor Documentation

Program::Program ( Shader AShader  ) 

constructs a new Program with shader AShader

Parameters:
AShader pointer to Shader to attach to the Program

Program::Program ( Shader AShader,
Shader BShader 
)

constructs a new Program with shader AShader and shader BShader

Parameters:
AShader pointer to Shader to attach to the Program
BShader pointer to Shader to attach to the Program

Program::~Program ( void   ) 


Member Function Documentation

void Program::attach ( Shader AShader  )  [private]

attaches a Shader to the program

Parameters:
AShader pointer to Shader to attach

void Program::bind (  ) 

bind the shaderprogram

void Program::destroy (  ) 

undbind an destroy the program

int Program::GetUniformLocation ( System::String^  name  ) 

returns the location of name in the Program

Parameters:
name specifies the name of the Variable to look for
Returns:
int of the location or -1

void Program::InfoLog (  )  [private]

helperfunction to recieve compilation errors

void Program::initialize (  )  [private]

initializes the program

void Program::link (  )  [private]

links the program and the shader

void Program::unbind (  ) 

unbind the shaderprogram


Member Data Documentation

GLuint LUVis::Program::Object [private]

program id

System::Collections::ArrayList LUVis::Program::ShaderList [private]

arraylist with all Shaders in the program


The documentation for this class was generated from the following files:
Generated on Wed Dec 6 16:25:59 2006 by  doxygen 1.4.7