GLUSEPROGRAMOBJECT(3gl)GLUSEPROGRAMOBJECT(3gl)NAME
glUseProgramObjectARB - Make a program object part of the current ren‐
dering state.
C SPECIFICATION
void glUseProgramObjectARB( GLhandleARB program)
PARAMETERS
program Specifies handle of program object which will be made part
the
cur‐
rent
ren‐
der‐
ing
state.
DESCRIPTION
glUseProgramObjectARB install the executable code as part of current
rendering state if the program object program has been successfully
linked. If glUseProgramObjectARB is called with the program set to 0,
the fixed functionality paths will be used instead.
While a program object is in use, shader objects can attached,
detached, modified, and compiled. However, these changes will not
affect the executable code until the program object has been success‐
fully re-linked.
NOTES
Any state changes to a program object in one context may not be updated
in a second context until glUseProgramObject is called on that program
object in the second context.
ERRORS
GL_INVALID_VALUE is generated if program is not a valid program handle.
GL_INVALID_OPERATION is generated if program is not of type GL_PRO‐
GRAM_OBJECT_ARB
GL_INVALID_OPERATION is generated if program could not be made part of
the current state.
GL_INVALID_OPERATION is generated glUseProgramObjectARB is executed
between the execution of glBegin and the corresponding execution of
glEnd.
ASSOCIATED GETS
glGetActiveAttrib with argument program
glGetAttachedObjectsARB with argument program
glGetHandleARB with argument program
SEE ALSO
glAttachObjectARB,glCompileShaderARB, glDeleteObjectARB, glLinkProgra‐
mARB, glValidateProgramARB
11 Mar 04 GLUSEPROGRAMOBJECT(3gl)