GLPROGRAMENVPARAMETER(3gl)GLPROGRAMENVPARAMETER(3gl)NAME
glProgramEnvParameter4fvARB,glProgramEnvParameter4dvARB glProgramEnvPa‐
rameter4fARB,glProgramEnvParameter4dARB - Returns the value of a envi‐
ronment program parameter.
C SPECIFICATION
void glProgramEnvParameter4fvARB( GLenum target,
GLuint index,
GLfloat *params)
void glProgramEnvParameter4dvARB( GLenum target,
GLuint index,
GLdouble *params)
PARAMETERS
target Specifies the program object to be updated. Accepted values are:
GL_VER‐
TEX_PRO‐
GRAM_ARB
and
GL_FRAG‐
MENT_PRO‐
GRAM_ARB.
index Specifies the environment parameter to be updated.
params Pointer to array of values used to update the spec‐
i‐
fied
envi‐
ron‐
ment
param‐
e‐
ter.
C SPECIFICATION
void glProgramEnvParameter4fARB( GLenum target,
GLuint index,
GLdouble x,
GLdouble y,
GLdouble z,
GLdouble w)
void glProgramEnvParameter4dARB( GLenum target,
GLuint index,
GLdouble x,
GLdouble y,
GLdouble z,
GLdouble w)
PARAMETERS
target Specifies the program object to be updated. Accepted values are:
GL_VER‐
TEX_PRO‐
GRAM_ARB
and
GL_FRAG‐
MENT_PRO‐
GRAM_ARB.
index Specifies the environment parameter to be updated.
x, y, z, w, Specifies the new values used to update the
spec‐
i‐
fied
envi‐
ron‐
ment
param‐
e‐
ter.
DESCRIPTION
glProgramEnvParameterARB updates the value for the program environment
parameter numbered index belonging to the program object currently
bound to target. For glProgramEnvParameter4fARB and glProgramEnvParam‐
eter4dARB, the four components of the parameter are updated with the
values of x, y, z, and w, respectively. For glProgramEnvParame‐
ter4fvARB and glProgramEnvParameter4dvARB, the four components of the
parameter are updated with the array of four values pointed to by
params.
ERRORS
GL_INVALID_ENUM is generated if target specifies a nonexistent program
target or a program target that does not support program environment
parameters.
GL_INVALID_VALUE is generated if index is greater than or equal to the
implementation-dependent number of supported program environment param‐
eters for the program target.
GL_INVALID_ENUM is generated if target is not GL_VERTEX_PROGRAM_ARB or
GL_FRAGMENT_PROGRAM_ARB.
ASSOCIATED GETS
glGetProgramEnvParameterARB with parameters target and index.
SEE ALSO
glBindProgramARB
11 Mar 04 GLPROGRAMENVPARAMETER(3gl)