1GLGETCOLORTABLEPARAMETER(3G)                      GLGETCOLORTABLEPARAMETER(3G)
2
3
4

NAME

6       glGetColorTableParameterfv,   glGetColorTableParameteriv  -  get  color
7       lookup table parameters
8
9

C SPECIFICATION

11       void glGetColorTableParameterfv( GLenum target,
12                                        GLenum pname,
13                                        GLfloat *params )
14       void glGetColorTableParameteriv( GLenum target,
15                                        GLenum pname,
16                                        GLint *params )
17
18

PARAMETERS

20       target  The   target   color   table.     Must    be    GL_COLOR_TABLE,
21               GL_POST_CONVOLUTION_COLOR_TABLE,
22               GL_POST_COLOR_MATRIX_COLOR_TABLE,         GL_PROXY_COLOR_TABLE,
23               GL_PROXY_POST_CONVOLUTION_COLOR_TABLE,
24               GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE.
25
26       pname   The symbolic name of a color lookup table parameter.   Must  be
27               one      of      GL_COLOR_TABLE_BIAS,     GL_COLOR_TABLE_SCALE,
28               GL_COLOR_TABLE_FORMAT,                    GL_COLOR_TABLE_WIDTH,
29               GL_COLOR_TABLE_RED_SIZE,             GL_COLOR_TABLE_GREEN_SIZE,
30               GL_COLOR_TABLE_BLUE_SIZE,            GL_COLOR_TABLE_ALPHA_SIZE,
31               GL_COLOR_TABLE_LUMINANCE_SIZE,                               or
32               GL_COLOR_TABLE_INTENSITY_SIZE.
33
34       params  A pointer to an array where the values of the parameter will be
35               stored.
36

DESCRIPTION

38       Returns parameters specific to color table target.
39
40       When  pname  is  set  to  GL_COLOR_TABLE_SCALE  or GL_COLOR_TABLE_BIAS,
41       glGetColorTableParameter returns the color table scale or bias  parame‐
42       ters for the table specified by target.  For these queries, target must
43       be   set   to   GL_COLOR_TABLE,   GL_POST_CONVOLUTION_COLOR_TABLE,   or
44       GL_POST_COLOR_MATRIX_COLOR_TABLE  and params points to an array of four
45       elements, which receive the scale or bias factors for red, green, blue,
46       and alpha, in that order.
47
48       glGetColorTableParameter  can  also  be  used to retrieve the  and size
49       parameters for a color table. For these queries, set target  to  either
50       the  color table target or the proxy color table target.  The  and size
51       parameters are set by glColorTable.
52
53       The following table lists the  and size parameters that may be queried.
54       For each symbolic constant listed below for pname, params must point to
55       an array of the given length, and receive the values indicated.
56
57         ───────────────────────────────────────────────────────────────────
58         Parameter                       N   Meaning
59         ───────────────────────────────────────────────────────────────────
60         GL_COLOR_TABLE_FORMAT           1   Internal  (e.g. GL_RGBA)
61         GL_COLOR_TABLE_WIDTH            1   Number of elements in table
62         GL_COLOR_TABLE_RED_SIZE         1   Size of red component, in bits
63         GL_COLOR_TABLE_GREEN_SIZE       1   Size of green component
64         GL_COLOR_TABLE_BLUE_SIZE        1   Size of blue component
65         GL_COLOR_TABLE_ALPHA_SIZE       1   Size of alpha component
66
67         GL_COLOR_TABLE_LUMINANCE_SIZE   1   Size of luminance component
68         GL_COLOR_TABLE_INTENSITY_SIZE   1   Size of intensity component
69         ───────────────────────────────────────────────────────────────────
70

NOTES

72       glGetColorTableParameter is present only if GL_ARB_imaging is  returned
73       when glGetString is called with an argument of GL_EXTENSIONS.
74

ERRORS

76       GL_INVALID_ENUM  is  generated  if target or pname is not an acceptable
77       value.
78
79       GL_INVALID_OPERATION is generated if glGetColorTableParameter  is  exe‐
80       cuted  between the execution of glBegin and the corresponding execution
81       of glEnd.
82

SEE ALSO

84       glColorTable(3G), glTexParameter(3G), glColorTableParameter(3G)
85
86
87
88                                                  GLGETCOLORTABLEPARAMETER(3G)
Impressum