glGetPixelMap(3G) OpenGL Reference glGetPixelMap(3G)
NAME
glGetPixelMapfv, glGetPixelMapuiv, glGetPixelMapusv - return the
specified pixel map
C SPECIFICATION
void glGetPixelMapfv( GLenum map,
GLfloat *values )
void glGetPixelMapuiv( GLenum map,
GLuint *values )
void glGetPixelMapusv( GLenum map,
GLushort *values )
PARAMETERS
map Specifies the name of the pixel map to return. Accepted values
are GLPIXELMAPITOI, GLPIXELMAPSTOS,
GLPIXELMAPITOR, GLPIXELMAPITOG, GLPIXELMAPITOB,
GLPIXELMAPITOA, GLPIXELMAPRTOR, GLPIXELMAPGTOG,
GLPIXELMAPBTOB, and GLPIXELMAPATOA.
values Returns the pixel map contents.
DESCRIPTION
See the glPixelMap reference page for a description of the acceptable
values for the map parameter. glGetPixelMap returns in values the
contents of the pixel map specified in map. Pixel maps are used during
the execution of glReadPixels, glDrawPixels, glCopyPixels, glTexImage1D,
and glTexImage2D to map color indices, stencil indices, color components,
and depth components to other values.
Unsigned integer values, if requested, are linearly mapped from the
internal fixed or floating-point representation such that 1.0 maps to the
largest representable integer value, and 0.0 maps to 0. Return unsigned
integer values are undefined if the map value was not in the range [0,1].
To determine the required size of map, call glGet with the appropriate
symbolic constant.
NOTES
If an error is generated, no change is made to the contents of values.
ERRORS
GLINVALIDENUM is generated if map is not an accepted value.
GLINVALIDOPERATION is generated if glGetPixelMap is executed between
the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GLPIXELMAPITOISIZE
glGet with argument GLPIXELMAPSTOSSIZE
glGet with argument GLPIXELMAPITORSIZE
Page 1
glGetPixelMap(3G) OpenGL Reference glGetPixelMap(3G)
glGet with argument GLPIXELMAPITOGSIZE
glGet with argument GLPIXELMAPITOBSIZE
glGet with argument GLPIXELMAPITOASIZE
glGet with argument GLPIXELMAPRTORSIZE
glGet with argument GLPIXELMAPGTOGSIZE
glGet with argument GLPIXELMAPBTOBSIZE
glGet with argument GLPIXELMAPATOASIZE
glGet with argument GLMAXPIXELMAPTABLE
SEE ALSO
glCopyPixels, glDrawPixels, glPixelMap, glPixelTransfer, glReadPixels,
glTexImage1D, glTexImage2D
Page 2