Shader Class Reference
#include <Shader.h>
List of all members.
Detailed Description
Class for loading and managing shaders
Constructor & Destructor Documentation
Constructs a new shader object.
Destroys the shader object.
Member Function Documentation
void Shader::activate |
( |
|
) |
|
void Shader::activate |
( |
|
) |
|
void Shader::deactivate |
( |
|
) |
|
void Shader::deactivate |
( |
|
) |
|
void Shader::getShadersLog |
( |
GLuint |
shader |
) |
[private] |
void Shader::getShadersLog |
( |
GLuint |
shader |
) |
[private] |
Prints the current shaderlog of shader shader on the console
- Parameters:
-
| shader | The shader which shader log should be printed to the console |
void Shader::uploadTexture |
( |
const char * |
name, |
|
|
GLint |
textureUnit | |
|
) |
| | |
void Shader::uploadTexture |
( |
const char * |
name, |
|
|
GLint |
textureUnit | |
|
) |
| | |
Uploads 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 Shader::uploadUniformFloat |
( |
const char * |
name, |
|
|
float |
value | |
|
) |
| | |
void Shader::uploadUniformFloat |
( |
const char * |
name, |
|
|
float |
value | |
|
) |
| | |
Uploads a float as a uniform
- Parameters:
-
| name | Name of the float in the shader |
| value | Float-Value of the variable which should be uploaded to the GPU |
void Shader::uploadUniformInt |
( |
const char * |
name, |
|
|
int |
value | |
|
) |
| | |
void Shader::uploadUniformInt |
( |
const char * |
name, |
|
|
int |
value | |
|
) |
| | |
Uploads an integer as a uniform
- Parameters:
-
| name | Name of the integer in the shader |
| value | Integer-Value of the variable which should be uploaded to the GPU |
void Shader::uploadUniformVec2 |
( |
const char * |
name, |
|
|
float * |
values | |
|
) |
| | |
void Shader::uploadUniformVec2 |
( |
const char * |
name, |
|
|
float * |
values | |
|
) |
| | |
Uploads a float vec2 as a uniform
- Parameters:
-
| name | Name of the float in the shader |
| values | Float-Values (Array with dimension 2) of the variable which should be uploaded to the GPU |
Member Data Documentation
The documentation for this class was generated from the following files:
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/FlowVis_2009_01_19_inkl_Texture/header/Shader.h
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/header/Shader.h
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/FlowVis_2009_01_19_inkl_Texture/src/Shader.cpp
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/src/Shader.cpp