Shaders Class Reference
#include <Shaders.h>
List of all members.
Detailed Description
Class for loading and managing of shaders
Constructor & Destructor Documentation
Construct a new shader object
Destroy the shader object
Member Function Documentation
void Shaders::activate |
( |
|
) |
|
void Shaders::deactivate |
( |
|
) |
|
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:
- D:/C++/Visualisierung/vislab/src/Shaders.h
- D:/C++/Visualisierung/vislab/src/Shaders.cpp