GLATTACHOBJECT(3gl)GLATTACHOBJECT(3gl)NAME
glAttachObjectARB - Attacheds a shader object to a program object
C SPECIFICATION
void glAttachObjectARB( GLhandleARB program,
GLhandleARB *hader )
PARAMETERS
program Specifies the handle of program object.
shader Specifies the handle of the shader object.
DESCRIPTION
glAttachObjectARB attaches a shader object specified by shader to a
program object specified by program. All shader objects which are
attached to a program object will be inclucded in the link operation
for that program object. 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. Multiple shader objects of
the same type can be attached to a single program object, and shader
object can be attached to more than one program object.
ERRORS
GL_INVALID_VALUE is generated if either shader of program is not a
valid object handle.
GL_INVALID_OPERATION is generated if shader is not attached to program.
GL_INVALID_OPERATION is generated if program is not of type GL_PRO‐
GRAM_OBJECT_ARB
GL_INVALID_OPERATION is generated glAttachObjectARB is executed between
glBegin and glEnd.
ASSOCIATED GETS
glGetAttachedObjectsARB with the handle of a valid program object.
SEE ALSO
glDetachObjectARB
11 Mar 04 GLATTACHOBJECT(3gl)