- return texture coordinate generation parameters



C SPECIFICATION


PARAMETERS

       _param1  Specifies  a  texture  coordinate.  Must be GL_S,
                GL_T, GL_R, or GL_Q.

       _param2  Specifies the symbolic name of the value(s) to be
                returned.   Must be either GL_TEXTURE_GEN_MODE or
                the name of one of the texture  generation  plane
                equations: GL_OBJECT_PLANE or GL_EYE_PLANE.

       _param3  Returns the requested data.


DESCRIPTION

       glGetTexGen  returns  in  _param3 selected parameters of a
       texture coordinate generation function that was  specified
       using  glTexGen.   _param1  names  one of the (s, t, r, q)
       texture coordinates, using  the  symbolic  constant  GL_S,
       GL_T, GL_R, or GL_Q.

       _param2 specifies one of three symbolic names:

       GL_TEXTURE_GEN_MODE         _param3  returns  the  single-
                                   valued   texture    generation
                                   function, a symbolic constant.
                                   The    initial    value     is
                                   GL_EYE_LINEAR.

       GL_OBJECT_PLANE             _param3 returns the four plane
                                   equation   coefficients   that
                                   specify  object linear-coordi-
                                   nate generation.  Integer val-
                                   ues,   when   requested,   are
                                   mapped   directly   from   the
                                   internal floating-point repre-
                                   sentation.

       GL_EYE_PLANE                _param3 returns the four plane
                                   equation   coefficients   that
                                   specify eye  linear-coordinate
                                   generation.   Integer  values,
                                   when  requested,  are   mapped
                                   directly   from  the  internal
                                   floating-point representation.
                                   The  returned values are those
                                   maintained in eye coordinates.
                                   They are not equal to the val-
                                   ues specified using  glTexGen,
                                   unless  the  modelview  matrix
                                   was identity when glTexGen was

       GL_INVALID_OPERATION  is  generated if glGetTexGen is exe-
       cuted between the execution of glBegin and the correspond-
       ing execution of glEnd.


SEE ALSO

       glActiveTextureARB, glTexGen



                                                                1