valuesArray = gl.GetPixelMap(map)
gl.GetPixelMap()
returns the contents of the pixel map specified in map
. This can be one of the
following constants:
#GL_PIXEL_MAP_I_TO_I #GL_PIXEL_MAP_S_TO_S #GL_PIXEL_MAP_I_TO_R #GL_PIXEL_MAP_I_TO_G #GL_PIXEL_MAP_I_TO_B #GL_PIXEL_MAP_I_TO_A #GL_PIXEL_MAP_R_TO_R #GL_PIXEL_MAP_G_TO_G #GL_PIXEL_MAP_B_TO_B #GL_PIXEL_MAP_A_TO_A |
See gl.PixelMap for details.
Pixel maps are used during the execution of gl.ReadPixels(), gl.DrawPixels(), gl.CopyPixels(), and gl.TexImage1D(), gl.TexImage2D(), gl.TexSubImage1D(), gl.TexSubImage2D(), gl.CopyTexImage() and gl.CopyTexSubImage(), to map color indices, stencil indices, color components, and depth components to other values.
Please consult an OpenGL reference manual for more information.
#GL_INVALID_ENUM
is generated if map
is not an accepted value.
#GL_INVALID_OPERATION
is generated if gl.GetPixelMap()
is executed between the execution of gl.Begin() and the corresponding execution of gl.End() .
#GL_PIXEL_MAP_I_TO_I_SIZE
gl.Get() with argument #GL_PIXEL_MAP_S_TO_S_SIZE
gl.Get() with argument #GL_PIXEL_MAP_I_TO_R_SIZE
gl.Get() with argument #GL_PIXEL_MAP_I_TO_G_SIZE
gl.Get() with argument #GL_PIXEL_MAP_I_TO_B_SIZE
gl.Get() with argument #GL_PIXEL_MAP_I_TO_A_SIZE
gl.Get() with argument #GL_PIXEL_MAP_R_TO_R_SIZE
gl.Get() with argument #GL_PIXEL_MAP_G_TO_G_SIZE
gl.Get() with argument #GL_PIXEL_MAP_B_TO_B_SIZE
gl.Get() with argument #GL_PIXEL_MAP_A_TO_A_SIZE
gl.Get() with argument #GL_MAX_PIXEL_MAP_TABLE