MyWebUniversity.com Home Page
 



Darwin Mac OS X man pages main menu
GLGETCOLORTABLEPARAMETER(3G)                      GLGETCOLORTABLEPARAMETER(3G)



NAME
       glGetColorTableParameterfv,,   glGetColorTableParameteriv  -  get  color
       lookup table parameters


C SPECIFICATION
       void glGetColorTableParameterfv( GLenum target,
                                        GLenum pname,
                                        GLfloat *params )
       void glGetColorTableParameteriv( GLenum target,
                                        GLenum pname,
                                        GLint *params )


PARAMETERS
       target  The   target   color   table.     Must    be    GLCOLORTABLE,
               GLPOSTCONVOLUTIONCOLORTABLE,
               GLPOSTCOLORMATRIXCOLORTABLE,         GLPROXYCOLORTABLE,
               GLPROXYPOSTCONVOLUTIONCOLORTABLE,
               GLPROXYPOSTCOLORMATRIXCOLORTABLE.

       pname   The symbolic name of a color lookup table parameter.   Must  be
               one      of      GLCOLORTABLEBIAS,     GLCOLORTABLESCALE,
               GLCOLORTABLEFORMAT,                    GLCOLORTABLEWIDTH,
               GLCOLORTABLEREDSIZE,             GLCOLORTABLEGRENSIZE,
               GLCOLORTABLEBLUESIZE,            GLCOLORTABLEALPHASIZE,
               GLCOLORTABLELUMINANCESIZE,                               or
               GLCOLORTABLEINTENSITYSIZE.

       params  A pointer to an array where the values of the parameter will be
               stored.

DESCRIPTION
       Returns parameters specific to color table target.

       When  pname  is  set  to  GLCOLORTABLESCALE  or GLCOLORTABLEBIAS,
       glGetColorTableParameter returns the color table scale or bias  parame-
       ters for the table specified by target.  For these queries, target must
       be   set   to   GLCOLORTABLE,   GLPOSTCONVOLUTIONCOLORTABLE,   or
       GLPOSTCOLORMATRIXCOLORTABLE  and params points to an array of four
       elements, which receive the scale or bias factors for red, green, blue,
       and alpha, in that order.

       glGetColorTableParameter  can  also  be  used to retrieve the  and size
       parameters for a color table. For these queries, set target  to  either
       the  color table target or the proxy color table target.  The  and size
       parameters are set by glColorTable.

       The following table lists the  and size parameters that may be queried.
       For each symbolic constant listed below for pname, params must point to
       an array of the given length, and receive the values indicated.


        Parameter                          N Meaning
        GLCOLORTABLEFORMAT      1 Internal  (e.g. GLRGBA)
        GLCOLORTABLEWIDTH       1 Number of elements in table
        GLCOLORTABLEREDSIZE    1 Size of red component, in bits
        GLCOLORTABLEGRENSIZE  1 Size of green component
        GLCOLORTABLEBLUESIZE   1 Size of blue component
        GLCOLORTABLEALPHASIZE  1 Size of alpha component
        GLCOLORTABLELUMINANCESIZE 1 Size of luminance component
        GLCOLORTABLEINTENSITYSIZE 1 Size of intensity component 

NOTES
       glGetColorTableParameter is present only if GLARBimaging is  returned
       when glGetString is called with an argument of GLEXTENSIONS.

ERORS
       GLINVALIDENUM  is  generated  if target or pname is not an acceptable
       value.

       GLINVALIDOPERATION is generated if glGetColorTableParameter  is  exe-
       cuted  between the execution of glBegin and the corresponding execution
       of glEnd.

SEE ALSO
       glColorTable, glTexParameter, glColorTableParameter



                                                  GLGETCOLORTABLEPARAMETER(3G)
Darwin Mac OS X man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™