1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"glGetColorTableParameter">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glGetColorTableParameter
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glGetColorTableParameter
</refname>
17 <refpurpose>get color lookup table parameters
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glGetColorTableParameterfv
</function></funcdef>
23 <paramdef>GLenum
<parameter>target
</parameter></paramdef>
24 <paramdef>GLenum
<parameter>pname
</parameter></paramdef>
25 <paramdef>GLfloat *
<parameter>params
</parameter></paramdef>
30 <funcdef>void
<function>glGetColorTableParameteriv
</function></funcdef>
31 <paramdef>GLenum
<parameter>target
</parameter></paramdef>
32 <paramdef>GLenum
<parameter>pname
</parameter></paramdef>
33 <paramdef>GLint *
<parameter>params
</parameter></paramdef>
37 <!-- eqn: ignoring delim $$ -->
38 <refsect1 id=
"parameters"><title>Parameters
</title>
41 <term><parameter>target
</parameter></term>
44 The target color table.
46 <constant>GL_COLOR_TABLE
</constant>,
47 <constant>GL_POST_CONVOLUTION_COLOR_TABLE
</constant>,
48 <constant>GL_POST_COLOR_MATRIX_COLOR_TABLE
</constant>,
49 <constant>GL_PROXY_COLOR_TABLE
</constant>,
50 <constant>GL_PROXY_POST_CONVOLUTION_COLOR_TABLE
</constant>, or
51 <constant>GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE
</constant>.
56 <term><parameter>pname
</parameter></term>
59 The symbolic name of a color lookup table parameter.
61 <constant>GL_COLOR_TABLE_BIAS
</constant>,
62 <constant>GL_COLOR_TABLE_SCALE
</constant>,
63 <constant>GL_COLOR_TABLE_FORMAT
</constant>,
64 <constant>GL_COLOR_TABLE_WIDTH
</constant>,
65 <constant>GL_COLOR_TABLE_RED_SIZE
</constant>,
66 <constant>GL_COLOR_TABLE_GREEN_SIZE
</constant>,
67 <constant>GL_COLOR_TABLE_BLUE_SIZE
</constant>,
68 <constant>GL_COLOR_TABLE_ALPHA_SIZE
</constant>,
69 <constant>GL_COLOR_TABLE_LUMINANCE_SIZE
</constant>, or
70 <constant>GL_COLOR_TABLE_INTENSITY_SIZE
</constant>.
75 <term><parameter>params
</parameter></term>
78 A pointer to an array where the values of the parameter will be stored.
84 <refsect1 id=
"description"><title>Description
</title>
86 Returns parameters specific to color table
<parameter>target
</parameter>.
89 When
<parameter>pname
</parameter> is set to
<constant>GL_COLOR_TABLE_SCALE
</constant> or
90 <constant>GL_COLOR_TABLE_BIAS
</constant>,
<function>glGetColorTableParameter
</function> returns the color
91 table scale or bias parameters for the table specified by
<parameter>target
</parameter>.
92 For these queries,
<parameter>target
</parameter> must be set to
93 <constant>GL_COLOR_TABLE
</constant>,
94 <constant>GL_POST_CONVOLUTION_COLOR_TABLE
</constant>,
95 or
<constant>GL_POST_COLOR_MATRIX_COLOR_TABLE
</constant> and
96 <parameter>params
</parameter> points to an array of four elements, which receive
97 the scale or bias factors for red, green, blue, and alpha, in that order.
100 <function>glGetColorTableParameter
</function> can also be used to retrieve the format and size parameters
101 for a color table. For these queries, set
<parameter>target
</parameter> to either the
102 color table target or the proxy color table target.
103 The format and size parameters are set by
<citerefentry><refentrytitle>glColorTable
</refentrytitle></citerefentry>.
106 The following table lists the format and size parameters that may
108 For each symbolic constant listed below for
<parameter>pname
</parameter>,
109 <parameter>params
</parameter> must point to an array of the
110 given length and receive the values indicated.
114 <informaltable frame=
"topbot">
115 <tgroup cols=
"3" align=
"left">
116 <colspec colwidth=
"4*" />
117 <colspec colwidth=
"1*" align=
"center"/>
118 <colspec colwidth=
"3*" />
121 <entry rowsep=
"1" align=
"left"><emphasis role=
"bold">
124 <entry rowsep=
"1" align=
"center"><emphasis role=
"bold">
127 <entry rowsep=
"1" align=
"left"><emphasis role=
"bold">
135 <constant>GL_COLOR_TABLE_FORMAT
</constant>
137 <entry align=
"center">
141 Internal format (e.g.,
<constant>GL_RGBA
</constant>)
146 <constant>GL_COLOR_TABLE_WIDTH
</constant>
148 <entry align=
"center">
152 Number of elements in table
157 <constant>GL_COLOR_TABLE_RED_SIZE
</constant>
159 <entry align=
"center">
163 Size of red component, in bits
168 <constant>GL_COLOR_TABLE_GREEN_SIZE
</constant>
170 <entry align=
"center">
174 Size of green component
179 <constant>GL_COLOR_TABLE_BLUE_SIZE
</constant>
181 <entry align=
"center">
185 Size of blue component
190 <constant>GL_COLOR_TABLE_ALPHA_SIZE
</constant>
192 <entry align=
"center">
196 Size of alpha component
201 <constant>GL_COLOR_TABLE_LUMINANCE_SIZE
</constant>
203 <entry align=
"center">
207 Size of luminance component
212 <constant>GL_COLOR_TABLE_INTENSITY_SIZE
</constant>
214 <entry align=
"center">
218 Size of intensity component
227 <refsect1 id=
"notes"><title>Notes
</title>
229 <function>glGetColorTableParameter
</function> is present only if
<code>ARB_imaging
</code> is returned when
<citerefentry><refentrytitle>glGetString
</refentrytitle></citerefentry>
230 is called with an argument of
<constant>GL_EXTENSIONS
</constant>.
233 <refsect1 id=
"errors"><title>Errors
</title>
235 <constant>GL_INVALID_ENUM
</constant> is generated if
<parameter>target
</parameter> or
<parameter>pname
</parameter> is not
239 <constant>GL_INVALID_OPERATION
</constant> is generated if
<function>glGetColorTableParameter
</function> is executed
240 between the execution of
<citerefentry><refentrytitle>glBegin
</refentrytitle></citerefentry> and the corresponding
241 execution of
<citerefentry><refentrytitle>glEnd
</refentrytitle></citerefentry>.
244 <refsect1 id=
"seealso"><title>See Also
</title>
246 <citerefentry><refentrytitle>glColorTable
</refentrytitle></citerefentry>,
247 <citerefentry><refentrytitle>glTexParameter
</refentrytitle></citerefentry>,
248 <citerefentry><refentrytitle>glColorTableParameter
</refentrytitle></citerefentry>
251 <refsect1 id=
"Copyright"><title>Copyright
</title>
253 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
254 Silicon Graphics, Inc. This document is licensed under the SGI
255 Free Software B License. For details, see
256 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.