OpenGL Program Object. More...
Derived from: | None |
Derived by: | |
Group: | Display (Display) |
#include <ClanLib/display.h>
Class Members:
Construction: | |
Construct a null instance. | |
Load. | |
Load and link. |
| |
Returns true if this object is invalid. | |
Throw an exception if this object is invalid. | |
Retrieves the provider. | |
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. |
| |
Equality operator. | |
Add shader to program object. | |
Remove shader from program object. | |
Bind attribute to specific location. | |
Bind shader out variable a specific color buffer location. | |
Link program. | |
Validate program. | |
Set uniform variable(s). | |
Set uniform2i. | |
Set uniform2i. | |
Set uniform4i. | |
Set uniformiv. | |
Set uniform2s. | |
Set uniform3s. | |
Set uniform4s. | |
Set uniform2b. | |
Set uniform3b. | |
Set uniform4b. | |
Set uniform1f. | |
Set uniform2f. | |
Set uniform2f. | |
Set uniform4f. | |
Set uniformfv. | |
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++ inte to Opprogram obam objm 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.