GLGETPROGRAMSTRING(3gl)GLGETPROGRAMSTRING(3gl)NAME
glGetProgramStringARB - Returns the program source string for the cur‐
rent program object.
C SPECIFICATION
void glGetProgramStringARB( GLenum target,
GLenum pname,
const void *string)
PARAMETERS
target Symbolic name which specifies the program type. Valid val‐
ues
are
GL_VER‐
TEX_PRO‐
GRAM_ARB
and
GL_FRAG‐
MENT_PRO‐
GRAM_ARB.
pname Specifies which program string parameter to quiry accepted
val‐
ues
are:
GL_PRO‐
GRAM_STRING_ARB.
string Pointer to character string containing the program source.
DESCRIPTION
glGetProgramStringARB obtains the program string for the program object
bound to target and places the information in the array string. pname
must be GL_PROGRAM_STRING_ARB. n ubytes are returned into the array
program where n is the length of the program in ubytes, as returned by
glGetProgramivARB when pname is GL_PROGRAM_LENGTH_ARB. The program
string is always returned using the format given when the program
string was specified.
ERRORS
GL_INVALID_OPERATION is generated glGetProgramStringARB is executed
between the execution of glBegin and the corresponding execution of
glEnd.
SEE ALSO
glBindProgramARB, glProgramStringARB, glGetProgramivARB
12 Mar 04 GLGETPROGRAMSTRING(3gl)