glColorTableParameterEXT

NAME

glColorTableParameterEXT - set color lookup table parameters

C SPECIFICATION

void glColorTableParameterfvEXT(GLenum target,
                                GLenum pname
                                const GLfloat *params)

void glColorTableParameterivEXT(GLenum target,
                                GLenum pname
                                const GLint *params)

PARAMETERS

target Must be one of the following: GL_COLOR_TABLE_EXT, GL_POST_CONVOLUTION_COLOR_TABLE_EXT, GL_POST_COLOR_MATRIX_COLOR_TABLE_EXT, or GL_TEXTURE_COLOR_TABLE_EXT.
pname The symbolic name of a texture color lookup table parameter. Must be one of GL_COLOR_TABLE_SCALE_EXT or GL_COLOR_TABLE_BIAS_EXT.
params A pointer to an array where the values of the parameters are stored.

DESCRIPTION

glColorTableParameterEXT is used to specify the scale factors and bias terms applied to color components when they are loaded into the color table specified by target.

pname must be GL_COLOR_TABLE_SCALE_EXT to set the scale factors. In this case, params points to an array of four values which are the scale factors for red, green, blue, and alpha. pname must be GL_COLOR_TABLE_BIAS_EXT to set the bias terms. params points to an array of four values which are the bias terms for red, green, blue, and alpha.

EXTENSIONS

Some routines and constants for this function are part of an extension, not part of the core GL command set. The following extension names must be present in the string returned by glGetString when called with argument GL_EXTENSIONS to use these routines and constants.
GL_EXT_color_table
glColorTableParameterEXT, GL_COLOR_TABLE_EXT, GL_POST_CONVOLUTION_COLOR_TABLE_EXT, GL_POST_COLOR_MATRIX_COLOR_TABLE_EXT, GL_COLOR_TABLE_SCALE_EXT, and GL_COLOR_TABLE_BIAS_EXT are part of the EXT_color_table extension.

GL_EXT_texture_color_table
GL_TEXTURE_COLOR_TABLE_EXT is part of the EXT_texture_color_table extension.

ERRORS

GL_INVALID_ENUM is generated if target or pname is not an accepted value.

GL_INVALID_OPERATION is generated if glColorTableParameterEXT is executed between the execution of glBegin and the corresponding execution of glEnd.

ASSOCIATED GETS

glGetColorTableParameterEXT

SEE ALSO

glColorSubTableEXT, glColorTableEXT, glGetString, glPixelTransfer