#include <GLSLShader.hh>
Public Member Functions | |
| Program () | |
| Creates a new GLSL program object. | |
| virtual | ~Program () |
| Deletes the GLSL program object and frees the linked shader objects. | |
| void | attach (PtrConstShader shader) |
| Attaches a shader object to the program object. | |
| void | detach (PtrConstShader shader) |
| Detaches a shader object from the program object. | |
| void | link () |
| Links the shader objects to the program. | |
| void | setUniform (const char *name, GLint value) |
| Sets a uniform variable for the program. | |
| void | setUniform (const char *name, GLfloat value) |
| Sets a uniform variable for the program. | |
| void | setUniform (const char *name, const ACG::Vec3f &value) |
| Sets a uniform variable for the program. | |
| void | setUniform (const char *name, GLint *value, int count) |
| void | setUniform (const char *name, int index, bool value) |
| void | setUniform (const char *name, int index, int value) |
| void | setUniform (const char *name, int index, float value) |
| void | bindAttributeLocation (unsigned int index, const char *name) |
| int | getAttributeLocation (const char *name) |
| int | getUniformLocation (const char *name) |
| void | use () |
| Enables the program object for using. | |
| void | disable () |
| Resets to standard rendering pipeline. | |
| bool | isActive () |
| Returns if the program object is currently active. | |
Private Attributes | |
| std::list< PtrConstShader > | m_linkedShaders |
| GLint | m_programId |
GLSL program class.
A GLSL program links together the vertex and fragment shaders.
Definition at line 131 of file GLSLShader.hh.