GLCREATEPROGRAMOBJECT(3gl)GLCREATEPROGRAMOBJECT(3gl)NAME
glCreateProgramObjectARB - Creates a program object.
C SPECIFICATION
void glCreateProgramObjectARB( void )
DESCRIPTION
glCreateProgramObjectARB creates a new program object and returns its
handle. If the creation failed the handle returned will be 0
A program object is a container object. Shader objects are attached to
a program object with the command glAttachObjectARB. Shader objects can
be attached to program objects before source code has been loaded into
the shader object, or before the shader object has been compiled. Mul‐
tiple shader objects of the same type can be attached to a single pro‐
gram object, and shader object can be attached to more than one program
object.
A program object is made part of the current state by calling glUsePro‐
gramObjectARB. In order to use the shader objects contained in a pro‐
gram object, the program object must be linked by calling glLinkProgra‐
mARB.
NOTES
The name space for program objects can be shared across multiple con‐
texts like texture objects and display lists.
ERRORS
GL_INVALID_OPERATION is generated glCreateProgramObjectARB is executed
between glBegin and glEnd.
ASSOCIATED GETS
glGetobjectParameterARB with the handle of a valid program object
glGetobjectParameterARB with the handle of a valid program object
glGetHandleARB with the argument GL_PROGRAM_OBJECT_ARB
glGetAttacheckObjectARB with the handle of a valid program object
glGetInfoLogARB with the handle of a valid program object
SEE ALSO
glAttachObjectARB, glCreateShaderObjectARB, glDeleteObjectARB,
glLinkProgramARB, glValidateProgramARB
11 Mar 04 GLCREATEPROGRAMOBJECT(3gl)