GLGENPROGRAMS(3gl)GLGENPROGRAMS(3gl)NAME
glGenProgramsARB - generate program names
C SPECIFICATION
void glGenProgramsARB( GLsizei n,
GLuint *programs )
PARAMETERS
n Specifies the number of program names to be generated.
programs Specifies an array in which the generated programs names are
stored.
DESCRIPTION
glGenProgramsARB returns n program names in programs. There is no
guarantee that the names form a contiguous set of integers; however, it
is guaranteed that none of the returned names was in use immediately
before the call to glGenProgramsARB.
The generated programs have no type; they assume the type of the pro‐
gram target to which they are first bound (see glBindProgramsARB).
Program names returned by a call to glGenProgramsARB are not returned
by subsequent calls, unless they are first deleted with glDeletePro‐
gramsARB.
ERRORS
GL_INVALID_VALUE is generated if n is negative.
GL_INVALID_OPERATION is generated if glGenPrograms is executed between
the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glIsProgramARB
SEE ALSO
glBindProgramARB, glDeleteProgramsARB, glGet, glGetProgramivARB
12 Mar 04 GLGENPROGRAMS(3gl)