Shaders Class Reference

#include <Shaders.h>

List of all members.

Public Member Functions

 Shaders ()
 ~Shaders ()
void load ()
void activate ()
void deactivate ()
void uploadTexture (const char *name, GLint textureUnit)
void uploadUniformInt (const char *name, int value)
void uploadUniformFloat (const char *name, float value)

Detailed Description

Class for loading and managing of shaders


Constructor & Destructor Documentation

Shaders::Shaders (  ) 

Construct a new shader object

Shaders::~Shaders (  ) 

Destroy the shader object


Member Function Documentation

void Shaders::activate (  ) 

Activates the shaders

void Shaders::deactivate (  ) 

Deactivate the shaders

void Shaders::load (  ) 

Loading of the shaders

void Shaders::uploadTexture ( const char *  name,
GLint  textureUnit 
)

Upload a texture as a uniform

Parameters:
name Name of the texture in the shader
textureUnit Texture unit at which the texture should be bounded
void Shaders::uploadUniformFloat ( const char *  name,
float  value 
)

Upload a float as an uniform

Parameters:
name Name of the float in the shader
value Float-value of the variable which should be uploaded tp the GPU
void Shaders::uploadUniformInt ( const char *  name,
int  value 
)

Upload an integer as an uniform

Parameters:
name Name of the integer in the shader
value Integer-value of the variable which should be uploaded to the GPU

The documentation for this class was generated from the following files:

Generated on Tue Dec 8 16:10:51 2009 for VisLab by  doxygen 1.6.1