next up previous contents
Next: 13.2.3.2 The Color Table Up: 13.2.3 Look-Up Tables Previous: 13.2.3 Look-Up Tables

13.2.3.1 Pixel Maps

Pixel maps are a feature of base OpenGL which allow certain look-up operations to be performed. OpenGL maintains tables which map:

Tables that map color indices to RGBA values are used automatically whenever an image with a color index format is transferred to a destination which requires an RGBA image. For example, performing a glDrawPixels() of a color index image to an RGBA framebuffer would result in application of the I to RGBA pixel maps. Other tables are enabled with the commands glPixelTransferGL_MAP_COLOR, 1(GL_MAP_COLOR, 1) and glPixelTransferGL_MAP_STENCIL, 1(GL_MAP_STENCIL, 1).

Pixel maps are defined using the glPixelMap() command and queried using the glGetPixelMap() command. Details on the use of these commands may be found in [12]. The sizes of the pixel maps are not tied together in any way. For example, the R to R pixel map does not need to be the same size as the G to G pixel map.

Each system provides a constant, GL_MAX_PIXEL_MAP_TABLE, which gives the maximum size of a pixel map which may be defined.


next up previous contents
Next: 13.2.3.2 The Color Table Up: 13.2.3 Look-Up Tables Previous: 13.2.3 Look-Up Tables
David Blythe
1999-08-06