GLGETUNIFORM(3gl)GLGETUNIFORM(3gl)NAME
glGetuniformfvARB, glGetUniformivARB - Returns the value of a uniform.
C SPECIFICATION
void glGetuniformfvARB( GLhandleARB program,
GLint location,
GLfloat *params)
void glGetuniformivARB( GLhandleARB program,
GLint location,
GLint *params)
PARAMETERS
program Specifies the handle of program object to be queried.
location Specifies the location of the uniform variable to be queried.
params Returns the value of the specified uniform variable.
DESCRIPTION
glGetUniformARB returns the values of the specified uniform. The type
of uniform determines how many values will be returned. If the uniform
is an int, float or boolean, one value will be returned. If the uniform
was defined as a vec2, ivec2 or bvec2 two values will be returned etc.
After a program object has been linked, the location of the uniform can
be queried by called glGetUniformLocationARB. After re-linking the
locations of the uniforms need to be queried again because the previous
locations become invalidated.
ERRORS
GL_INVALID_VALUE is generated if program is not a valid object handle.
GL_INVALID_OPERATION is generated if program is not of type GL_PRO‐
GRAM_OBJECT_ARB.
GL_INVALID_OPERATION is generated if program has not been successfully
linked.
GL_INVALID_OPERATION is generated if location is not a valid uniform
location.
GL_INVALID_OPERATION is generated if glGetuniformfvARB is executed
between the execution of glBegin and the corresponding execution of
glEnd.
ASSOCIATED GETS
glGetObjectParameterARB with argument GL_OBJECT_INFO_LOG_LENGTH_ARB
SEE ALSO
glGetActiveUniformARB, glGetUniformLocationARB, glLinkProgramARB, glU‐
niformARB
11 Mar 04 GLGETUNIFORM(3gl)