void glGetColorTableParameterfvEXT(GLenum target, GLenum pname GLfloat *params) void glGetColorTableParameterivEXT(GLenum target, GLenum pname GLint *params)
target | Must be one of the following: GL_COLOR_TABLE_EXT, GL_POST_CONVOLUTION_COLOR_TABLE_EXT, GL_POST_COLOR_MATRIX_COLOR_TABLE_EXT, GL_TEXTURE_COLOR_TABLE_EXT, GL_PROXY_COLOR_TABLE_EXT, GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_EXT, GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_EXT, or GL_PROXY_TEXTURE_COLOR_TABLE_EXT. |
pname | The symbolic name of a color lookup table parameter. Must be one of GL_COLOR_TABLE_BIAS_EXT, GL_COLOR_TABLE_SCALE_EXT, GL_COLOR_TABLE_FORMAT_EXT, GL_COLOR_TABLE_WIDTH_EXT, GL_COLOR_TABLE_RED_SIZE_EXT, GL_COLOR_TABLE_GREEN_SIZE_EXT, GL_COLOR_TABLE_BLUE_SIZE_EXT, GL_COLOR_TABLE_ALPHA_SIZE_EXT, GL_COLOR_TABLE_LUMINANCE_SIZE_EXT, or GL_COLOR_TABLE_INTENSITY_SIZE_EXT. |
params | A pointer to an array where the values of the parameters are stored. |
pname must be GL_COLOR_TABLE_SCALE_EXT to retrieve the scale factors. In this case, params points to an array of four elements, which receive the scale factors for red, green, blue, and alpha. pname must be GL_COLOR_TABLE_BIAS_EXT to retrieve the bias terms. params points to an array of four elements, which receive the bias terms for red, green, blue, and alpha.
pname may also be one of the symbolic constants in the following table, in which case params must point to an array of the given length.
pname | Length | Meaning |
---|---|---|
GL_COLOR_TABLE_FORMAT_EXT | 1 | Internal format (e.g., GL_RGBA) |
GL_COLOR_TABLE_WIDTH_EXT | 1 | Number of elements in table |
GL_COLOR_TABLE_RED_SIZE_EXT | 1 | Size of red component, in bits |
GL_COLOR_TABLE_GREEN_SIZE_EXT | 1 | Size of green component |
GL_COLOR_TABLE_BLUE_SIZE_EXT | 1 | Size of blue component |
GL_COLOR_TABLE_ALPHA_SIZE_EXT | 1 | Size of alpha component |
GL_COLOR_TABLE_LUMINANCE_SIZE_EXT | 1 | Size of luminance component |
GL_COLOR_TABLE_INTENSITY_SIZE_EXT | 1 | Size of intensity component |
GL_INVALID_OPERATION is generated if glGetColorTableParameterEXT is executed between the execution of glBegin and the corresponding execution of glEnd.