OpenGL.GL.ARB.shader_objects
OpenGL extension ARB.shader_objects
This module customises the behaviour of the
OpenGL.raw.GL.ARB.shader_objects to provide a more
Python-friendly API
Overview (from the spec)
This extension adds API calls that are necessary to manage shader
objects and program objects as defined in the OpenGL 2.0 white papers by
3Dlabs.
The generation of an executable that runs on one of OpenGL's
programmable units is modeled to that of developing a typical C/C++
application. There are one or more source files, each of which are
stored by OpenGL in a shader object. Each shader object (source file)
needs to be compiled and attached to a program object. Once all shader
objects are compiled successfully, the program object needs to be linked
to produce an executable. This executable is part of the program object,
and can now be loaded onto the programmable units to make it part of the
current OpenGL state. Both the compile and link stages generate a text
string that can be queried to get more information. This information
could be, but is not limited to, compile errors, link errors,
optimization hints, etc. Values for uniform variables, declared in a
shader, can be set by the application and used to control a shader's
behavior.
This extension defines functions for creating shader objects and program
objects, for compiling shader objects, for linking program objects, for
attaching shader objects to program objects, and for using a program
object as part of current state. Functions to load uniform values are
also defined. Some house keeping functions, like deleting an object and
querying object state, are also provided.
Although this extension defines the API for creating shader objects, it
does not define any specific types of shader objects. It is assumed that
this extension will be implemented along with at least one such
additional extension for creating a specific type of OpenGL 2.0 shader
(e.g., the ARB_fragment_shader extension or the ARB_vertex_shader
extension).
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/shader_objects.txt
Functions
Constants
GL_BOOL_ARB (35670)
GL_BOOL_VEC2_ARB (35671)
GL_BOOL_VEC3_ARB (35672)
GL_BOOL_VEC4_ARB (35673)
GL_FLOAT_MAT2_ARB (35674)
GL_FLOAT_MAT3_ARB (35675)
GL_FLOAT_MAT4_ARB (35676)
GL_FLOAT_VEC2_ARB (35664)
GL_FLOAT_VEC3_ARB (35665)
GL_FLOAT_VEC4_ARB (35666)
GL_INFO_LOG_LENGTH_ARB (35716)
GL_INT_VEC2_ARB (35667)
GL_INT_VEC3_ARB (35668)
GL_INT_VEC4_ARB (35669)
GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB (35719)
GL_OBJECT_ACTIVE_UNIFORMS_ARB (35718)
GL_OBJECT_ATTACHED_OBJECTS_ARB (35717)
GL_OBJECT_COMPILE_STATUS_ARB (35713)
GL_OBJECT_DELETE_STATUS_ARB (35712)
GL_OBJECT_INFO_LOG_LENGTH_ARB (35716)
GL_OBJECT_LINK_STATUS_ARB (35714)
GL_OBJECT_SHADER_SOURCE_LENGTH_ARB (35720)
GL_OBJECT_SUBTYPE_ARB (35663)
GL_OBJECT_TYPE_ARB (35662)
GL_OBJECT_VALIDATE_STATUS_ARB (35715)
GL_PROGRAM_OBJECT_ARB (35648)
GL_SAMPLER_1D_ARB (35677)
GL_SAMPLER_1D_SHADOW_ARB (35681)
GL_SAMPLER_2D_ARB (35678)
GL_SAMPLER_2D_RECT_ARB (35683)
GL_SAMPLER_2D_RECT_SHADOW_ARB (35684)
GL_SAMPLER_2D_SHADOW_ARB (35682)
GL_SAMPLER_3D_ARB (35679)
GL_SAMPLER_CUBE_ARB (35680)
GL_SHADER_OBJECT_ARB (35656)