
OpenGL Program Object. More...
Derived from: | None |
Derived by: | None |
Group: | Display (Display) |
#include <ClanLib/display.h>
Class Members:
Construction: | |
Construct OpenGL program object. | |
| |
Returns true if the Program object is a dummy. | |
Returns the OpenGL program object handle. | |
Returns the shaders attached to the program object. | |
Returns the current info log for the program object. | |
Returns the count of active attributes. | |
Returns the active attributes. | |
Returns the location of a named active attribute. | |
Returns the count of active uniform variables. | |
Returns the active uniforms. | |
Returns the location of a named uniform variable. |
| |
Add shader to program object. | |
Remove shader from program object. | |
Bind attribute to specific location. | |
Link program. | |
Validate program. | |
Set uniform variable(s). | |
Set uniform matrices. |
Detailed description:
The shader objects that are to be used by programmable stages of OpenGL are collected together to form a program object. CL_ProgramObject is ClanLib's C++ interface to OpenGL program objects.To construct a program object programatically, the procedure is as follows:
For more information about program objects, see the OpenGL 2.0 specification at . Documentation about the OpenGL Shader Language (GLSL) is also available from www.opengl.org.