1GLGETPIXELMAP(3G) GLGETPIXELMAP(3G)
2
3
4
6 glGetPixelMapfv, glGetPixelMapuiv, glGetPixelMapusv - return the speci‐
7 fied pixel map
8
9
11 void glGetPixelMapfv( GLenum map,
12 GLfloat *values )
13 void glGetPixelMapuiv( GLenum map,
14 GLuint *values )
15 void glGetPixelMapusv( GLenum map,
16 GLushort *values )
17
18
20 map Specifies the name of the pixel map to return. Accepted values
21 are GL_PIXEL_MAP_I_TO_I, GL_PIXEL_MAP_S_TO_S,
22 GL_PIXEL_MAP_I_TO_R, GL_PIXEL_MAP_I_TO_G, GL_PIXEL_MAP_I_TO_B,
23 GL_PIXEL_MAP_I_TO_A, GL_PIXEL_MAP_R_TO_R, GL_PIXEL_MAP_G_TO_G,
24 GL_PIXEL_MAP_B_TO_B, and GL_PIXEL_MAP_A_TO_A.
25
26 values Returns the pixel map contents.
27
29 See the glPixelMap reference page for a description of the acceptable
30 values for the map parameter. glGetPixelMap returns in values the con‐
31 tents of the pixel map specified in map. Pixel maps are used during
32 the execution of glReadPixels, glDrawPixels, glCopyPixels,
33 glTexImage1D, glTexImage2D, glTexImage3D, glTexSubImage1D,
34 glTexSubImage2D, glTexSubImage3D, glCopyTexImage1D, glCopyTexImage2D,
35 glCopyTexSubImage1D, glCopyTexSubImage2D, glCopyTexSubImage3D,
36 glColorTable, glColorSubTable, glCopyColorTable, glCopyColorSubTable,
37 glConvolutionFilter1D, glConvolutionFilter2D, glSeparableFilter2D,
38 glGetHistogram, glGetMinmax, and glGetTexImage to map color indices,
39 stencil indices, color components, and depth components to other val‐
40 ues.
41
42 Unsigned integer values, if requested, are linearly mapped from the
43 internal fixed or floating-point representation such that 1.0 maps to
44 the largest representable integer value, and 0.0 maps to 0. Return
45 unsigned integer values are undefined if the map value was not in the
46 range [0,1].
47
48 To determine the required size of map, call glGet with the appropriate
49 symbolic constant.
50
52 If an error is generated, no change is made to the contents of values.
53
55 GL_INVALID_ENUM is generated if map is not an accepted value.
56
57 GL_INVALID_OPERATION is generated if glGetPixelMap is executed between
58 the execution of glBegin and the corresponding execution of glEnd.
59
61 glGet with argument GL_PIXEL_MAP_I_TO_I_SIZE
62 glGet with argument GL_PIXEL_MAP_S_TO_S_SIZE
63 glGet with argument GL_PIXEL_MAP_I_TO_R_SIZE
64 glGet with argument GL_PIXEL_MAP_I_TO_G_SIZE
65 glGet with argument GL_PIXEL_MAP_I_TO_B_SIZE
66 glGet with argument GL_PIXEL_MAP_I_TO_A_SIZE
67 glGet with argument GL_PIXEL_MAP_R_TO_R_SIZE
68 glGet with argument GL_PIXEL_MAP_G_TO_G_SIZE
69 glGet with argument GL_PIXEL_MAP_B_TO_B_SIZE
70 glGet with argument GL_PIXEL_MAP_A_TO_A_SIZE
71 glGet with argument GL_MAX_PIXEL_MAP_TABLE
72
74 glColorSubTable(3G), glColorTable(3G), glConvolutionFilter1D(3G),
75 glConvolutionFilter2D(3G), glCopyColorSubTable(3G),
76 glCopyColorTable(3G), glCopyPixels(3G), glCopyTexImage1D(3G),
77 glCopyTexImage2D(3G), glCopyTexSubImage1D(3G), glCopyTexSubImage2D(3G),
78 glCopyTexSubImage3D(3G), glDrawPixels(3G), glGetHistogram(3G),
79 glGetMinmax(3G), glGetTexImage(3G), glPixelMap(3G),
80 glPixelTransfer(3G), glReadPixels(3G), glSeparableFilter2D(3G),
81 glTexImage1D(3G), glTexImage2D(3G) glTexImage3D(3G),
82 glTexSubImage1D(3G), glTexSubImage2D(3G), glTexSubImage3D(3G)
83
84
85
86 GLGETPIXELMAP(3G)