1GLCOLORSUBTABLE(3G)                                        GLCOLORSUBTABLE(3G)
2
3
4

NAME

6       glColorSubTable - respecify a portion of a color table
7
8

C SPECIFICATION

10       void glColorSubTable( GLenum target,
11                             GLsizei start,
12                             GLsizei count,
13                             GLenum format,
14                             GLenum type,
15                             const GLvoid *data )
16
17

PARAMETERS

19       target  Must be one of GL_COLOR_TABLE, GL_POST_CONVOLUTION_COLOR_TABLE,
20               or GL_POST_COLOR_MATRIX_COLOR_TABLE.
21
22       start   The starting index of the portion of  the  color  table  to  be
23               replaced.
24
25       count   The number of table entries to replace.
26
27       format  The   of  the  pixel  data  in  data.  The allowable values are
28               GL_RED,    GL_GREEN,    GL_BLUE,    GL_ALPHA,     GL_LUMINANCE,
29               GL_LUMINANCE_ALPHA, GL_RGB, GL_BGR, GL_RGBA, and GL_BGRA.
30
31       type    The  type  of the pixel data in data.  The allowable values are
32               GL_UNSIGNED_BYTE,   GL_BYTE,    GL_UNSIGNED_SHORT,    GL_SHORT,
33               GL_UNSIGNED_INT,   GL_INT,   GL_FLOAT,  GL_UNSIGNED_BYTE_3_3_2,
34               GL_UNSIGNED_BYTE_2_3_3_REV,            GL_UNSIGNED_SHORT_5_6_5,
35               GL_UNSIGNED_SHORT_5_6_5_REV,         GL_UNSIGNED_SHORT_4_4_4_4,
36               GL_UNSIGNED_SHORT_4_4_4_4_REV,       GL_UNSIGNED_SHORT_5_5_5_1,
37               GL_UNSIGNED_SHORT_1_5_5_5_REV,         GL_UNSIGNED_INT_8_8_8_8,
38               GL_UNSIGNED_INT_8_8_8_8_REV,  GL_UNSIGNED_INT_10_10_10_2,   and
39               GL_UNSIGNED_INT_2_10_10_10_REV.
40
41       data    Pointer  to  a one-dimensional array of pixel data that is pro‐
42               cessed to replace the specified region of the color table.
43

DESCRIPTION

45       glColorSubTable is used to respecify a contiguous portion  of  a  color
46       table  previously defined using glColorTable.  The pixels referenced by
47       data replace the portion of the existing table from  indices  start  to
48       $"start"~+~"count"~-~1$,  inclusive.   This  region may not include any
49       entries outside the range of the color table as it was originally spec‐
50       ified.  It is not an error to specify a subtexture with width of 0, but
51       such a specification has no effect.
52

NOTES

54       glColorSubTable is present only  if  GL_ARB_imaging  is  returned  when
55       glGetString is called with an argument of GL_EXTENSIONS.
56

ERRORS

58       GL_INVALID_ENUM is generated if target is not one of the allowable val‐
59       ues.
60
61       GL_INVALID_VALUE is generated if $"start"~+~"count"~>~width$.
62
63       GL_INVALID_ENUM is generated if format is not one of the allowable val‐
64       ues.
65
66       GL_INVALID_ENUM  is  generated if type is not one of the allowable val‐
67       ues.
68
69       GL_INVALID_OPERATION  is  generated  if  glColorSubTable  is   executed
70       between  the  execution  of  glBegin and the corresponding execution of
71       glEnd.
72

ASSOCIATED GETS

74       glGetColorTable, glGetColorTableParameter
75

SEE ALSO

77       glColorSubTable(3G),  glColorTableParameter(3G),  glCopyColorTable(3G),
78       glCopyColorSubTable(3G), glGetColorTable(3G)
79
80
81
82                                                           GLCOLORSUBTABLE(3G)
Impressum