1GLGETTEXGEN(3G)                                                GLGETTEXGEN(3G)
2
3
4

NAME

6       glGetTexGendv, glGetTexGenfv, glGetTexGeniv - return texture coordinate
7       generation parameters
8
9

C SPECIFICATION

11       void glGetTexGendv( GLenum coord,
12                           GLenum pname,
13                           GLdouble *params )
14       void glGetTexGenfv( GLenum coord,
15                           GLenum pname,
16                           GLfloat *params )
17       void glGetTexGeniv( GLenum coord,
18                           GLenum pname,
19                           GLint *params )
20
21

PARAMETERS

23       coord   Specifies a texture coordinate.  Must be GL_S, GL_T,  GL_R,  or
24               GL_Q.
25
26       pname   Specifies  the  symbolic  name  of the value(s) to be returned.
27               Must be either GL_TEXTURE_GEN_MODE or the name of  one  of  the
28               texture   generation   plane   equations:   GL_OBJECT_PLANE  or
29               GL_EYE_PLANE.
30
31       params  Returns the requested data.
32

DESCRIPTION

34       glGetTexGen returns in params selected parameters of a texture  coordi‐
35       nate  generation  function  that  was  specified using glTexGen.  coord
36       names one of the (s, t, r, q) texture coordinates, using  the  symbolic
37       constant GL_S, GL_T, GL_R, or GL_Q.
38
39       pname specifies one of three symbolic names:
40
41       GL_TEXTURE_GEN_MODE         params  returns  the  single-valued texture
42                                   generation function, a  symbolic  constant.
43                                   The initial value is GL_EYE_LINEAR.
44
45       GL_OBJECT_PLANE             params  returns  the  four  plane  equation
46                                   coefficients that  specify  object  linear-
47                                   coordinate   generation.   Integer  values,
48                                   when requested, are  mapped  directly  from
49                                   the internal floating-point representation.
50
51       GL_EYE_PLANE                params  returns  the  four  plane  equation
52                                   coefficients that specify eye  linear-coor‐
53                                   dinate  generation.   Integer  values, when
54                                   requested, are  mapped  directly  from  the
55                                   internal   floating-point   representation.
56                                   The returned values are those maintained in
57                                   eye coordinates.  They are not equal to the
58                                   values specified using glTexGen, unless the
59                                   modelview matrix was identity when glTexGen
60                                   was called.
61

NOTES

63       If an error is generated, no change is made to the contents of params.
64
65       When  the  GL_ARB_multitexture  extension  is  supported,   glGetTexGen
66       returns  the  texture  coordinate  generation parameters for the active
67       texture unit.
68

ERRORS

70       GL_INVALID_ENUM is generated if coord  or  pname  is  not  an  accepted
71       value.
72
73       GL_INVALID_OPERATION  is  generated  if glGetTexGen is executed between
74       the execution of glBegin and the corresponding execution of glEnd.
75

SEE ALSO

77       glActiveTextureARB(3G), glTexGen(3G)
78
79
80
81                                                               GLGETTEXGEN(3G)
Impressum