#include <Shader.h>
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 |
ShaderProgram::~ShaderProgram | ( | void | ) |
void ShaderProgram::attach | ( | Shader^ | AShader | ) | [private] |
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
name | specifies the name of the Variable to look for |
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
GLuint LUVis::ShaderProgram::Object [private] |
program id
System::Collections::ArrayList LUVis::ShaderProgram::ShaderList [private] |
arraylist with all Shaders in the program