GLGETATTACHEDOBJECTS(3gl)GLGETATTACHEDOBJECTS(3gl)NAMEglGetAttachedObjectsARB - returns an array of handles attached to a
program object
C SPECIFICATION
void glGetAttachedObjectsARB( GLhandleARB program,
GLsizei maxCount,
GLsizei *count,
GLhandleARB *objects )
PARAMETERS
program Specifies the handle of program object to be queried.
maxCount Specifies the size of the objects array.
objects Specifies the array of shader objects that are attached to
the
pro‐
gram
object
spec‐
i‐
fied
in
pro‐
gram
DESCRIPTIONglGetAttachedObjectsARB returns an array of handles to shader objects
that are attached to a program object. The maximum number of handles
that will be written is maxCount. The number of objects currently
attached to program can be queried with by calling glGetObjectParame‐
tervARB with the value of GL_OBJECT_ATTACHED_OBJECTS_ARB.
The actual number of handles written into objects is returned in count.
If count is set to NULL nothing will be written into count.
ERRORS
GL_INVALID_VALUE is generated if program is not a valid object handle.
GL_INVALID_VALUE is generated if maxCount is less than 0.
GL_INVALID_OPERATION is generated if program is not of type GL_PRO‐
GRAM_OBJECT_ARB.
GL_INVALID_OPERATION is generated if glGetAttachedObjectsARB is exe‐
cuted between the execution of glBegin and the corresponding execution
of glEnd.
ASSOCIATED GETS
glGetObjectParameterARB with argument GL_OBJECT_ATTACHED_OBJECTS_ARB
SEE ALSO
glAttachObjectARB, glDetachObjectARB
11 Mar 04 GLGETATTACHEDOBJECTS(3gl)