MirBSD manpage: glColorTableParameter(3), glColorTableParameterfv(3), glColorTableParameteriv(3)


GLCOLORTABLEPARAMETERUNIX Programmer's MGLCOLORTABLEPARAMETER(3G)

NAME

     glColorTableParameteriv, glColorTableParameterfv - set color
     lookup table parameters

C SPECIFICATION

     void glColorTableParameteriv( GLenum target,
                                   GLenum pname,
                                   const GLint *params )
     void glColorTableParameterfv( GLenum target,
                                   GLenum pname,
                                   const GLfloat *params )

PARAMETERS

     target  The target color table. Must be GL_COLOR_TABLE,
             GL_POST_CONVOLUTION_COLOR_TABLE, or
             GL_POST_COLOR_MATRIX_COLOR_TABLE.

     pname   The symbolic name of a texture color lookup table
             parameter. Must be one of GL_COLOR_TABLE_SCALE or
             GL_COLOR_TABLE_BIAS.

     params  A pointer to an array where the values of the param-
             eters are stored.

DESCRIPTION

     glColorTableParameter is used to specify the scale factors
     and bias terms applied to color components when they are
     loaded into a color table. target indicates which color
     table the scale and bias terms apply to; it must be set to
     GL_COLOR_TABLE, GL_POST_CONVOLUTION_COLOR_TABLE, or
     GL_POST_COLOR_MATRIX_COLOR_TABLE.

     pname must be GL_COLOR_TABLE_SCALE to set the scale factors.
     In this case, params points to an array of four values,
     which are the scale factors for red, green, blue, and alpha,
     in that order.

     pname must be GL_COLOR_TABLE_BIAS to set the bias terms. In
     this case, params points to an array of four values, which
     are the bias terms for red, green, blue, and alpha, in that
     order.

     The color tables themselves are specified by calling
     glColorTable.

NOTES

     glColorTableParameter is available only if GL_ARB_imaging is
     returned from calling glGetString with an argument of
     GL_EXTENSIONS.

MirBSD #10-current     Printed 2021-12-07                       1

GLCOLORTABLEPARAMETERUNIX Programmer's MGLCOLORTABLEPARAMETER(3G)

ERRORS

     GL_INVALID_ENUM is generated if target or pname is not an
     acceptable value.

     GL_INVALID_OPERATION is generated if glColorTableParameter
     is executed between the execution of glBegin and the
     corresponding execution of glEnd.

ASSOCIATED GETS

     glGetColorTableParameter

SEE ALSO

     glColorTable(3G), glPixelTransfer(3G)

MirBSD #10-current     Printed 2021-12-07                       2

Generated on 2021-12-07 11:07:08 by $MirOS: src/scripts/roff2htm,v 1.103 2021/01/23 20:24:35 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2021 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.