void glCopyColorSubTableEXT(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
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. |
start | The index of the first entry in the table to load. start must be nonnegative. |
x | The x coordinate of the lower-left corner of the frame buffer image to be copied. |
y | The y coordinate of the lower-left corner of the frame buffer image to be copied. |
width | The number of entries in the table to load. start + width must not be greater than the width of the color table. |
The x, y, and width correspond to the x, y, and width arguments of glReadPixels; they specify the image width and the lower-left coordinates in the frame buffer. The image is taken from frame buffer exactly as if these arguments were passed to glReadPixels with argument format set to GL_RGBA and height set to 1, stopping after the final expansion to RGBA. If any pixels defined by the region are outside of the window associated with the GL context, the values obtained for those pixels are undefined. Subsequent processing is identical to that of glColorTableEXT.
GL_INVALID_VALUE is generated if start is less than zero.
GL_INVALID_VALUE is generated if width is less than zero.
GL_INVALID_VALUE is generated if start + width is greater than the width.
GL_INVALID_OPERATION is generated if glCopyColorSubTableEXT is executed between the execution of glEnd.