LUVis::ShaderProgram Class Reference

#include <Shader.h>

List of all members.

Public Member Functions

 ShaderProgram (Shader^AShader, Shader^BShader)
void bind ()
 bind the shaderprogram
void unbind ()
 unbind the shaderprogram
void destroy ()
 undbind an destroy the program
 ~ShaderProgram (void)
int GetUniformLocation (System::String^name)
void SetUniform (System::String^location, int arg0)
void SetUniform (System::String^location, float arg0)
void SetUniform (System::String^location, bool arg0)
void SetUniform (System::String^location, float arg0, float arg1)

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

ShaderProgram::ShaderProgram ( 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

ShaderProgram::~ShaderProgram ( void   ) 


Member Function Documentation

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

attaches a Shader to the program

Parameters:
AShader pointer to Shader to attach

void ShaderProgram::bind (  ) 

bind the shaderprogram

void ShaderProgram::destroy (  ) 

undbind an destroy the program

int ShaderProgram::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 ShaderProgram::InfoLog (  )  [private]

helperfunction to recieve compilation errors

void ShaderProgram::initialize (  )  [private]

initializes the program

void ShaderProgram::link (  )  [private]

links the program and the shader

void ShaderProgram::SetUniform ( System::String^  location,
float  arg0,
float  arg1 
)

void ShaderProgram::SetUniform ( System::String^  location,
bool  arg0 
)

void ShaderProgram::SetUniform ( System::String^  location,
float  arg0 
)

void ShaderProgram::SetUniform ( System::String^  location,
int  arg0 
)

void ShaderProgram::unbind (  ) 

unbind the shaderprogram


Member Data Documentation

GLuint LUVis::ShaderProgram::Object [private]

program id

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

arraylist with all Shaders in the program


The documentation for this class was generated from the following files:
Generated on Wed Jan 17 16:23:55 2007 by  doxygen 1.4.7