1GLGETTEXGEN(3G) OpenGL Manual GLGETTEXGEN(3G)
2
3
4
6 glGetTexGen - return texture coordinate generation parameters
7
9 void glGetTexGendv(GLenum coord, GLenum pname, GLdouble * params);
10
11 void glGetTexGenfv(GLenum coord, GLenum pname, GLfloat * params);
12
13 void glGetTexGeniv(GLenum coord, GLenum pname, GLint * params);
14
16 coord
17 Specifies a texture coordinate. Must be GL_S, GL_T, GL_R, or GL_Q.
18
19 pname
20 Specifies the symbolic name of the value(s) to be returned. Must be
21 either GL_TEXTURE_GEN_MODE or the name of one of the texture
22 generation plane equations: GL_OBJECT_PLANE or GL_EYE_PLANE.
23
24 params
25 Returns the requested data.
26
28 glGetTexGen returns in params selected parameters of a texture
29 coordinate generation function that was specified using glTexGen().
30 coord names one of the (s, t, r, q) texture coordinates, using the
31 symbolic constant GL_S, GL_T, GL_R, or GL_Q.
32
33 pname specifies one of three symbolic names:
34
35 GL_TEXTURE_GEN_MODE
36 params returns the single-valued texture generation function, a
37 symbolic constant. The initial value is GL_EYE_LINEAR.
38
39 GL_OBJECT_PLANE
40 params returns the four plane equation coefficients that specify
41 object linear-coordinate generation. Integer values, when
42 requested, are mapped directly from the internal floating-point
43 representation.
44
45 GL_EYE_PLANE
46 params returns the four plane equation coefficients that specify
47 eye linear-coordinate generation. Integer values, when requested,
48 are mapped directly from the internal floating-point
49 representation. The returned values are those maintained in eye
50 coordinates. They are not equal to the values specified using
51 glTexGen(), unless the modelview matrix was identity when
52 glTexGen() was called.
53
55 If an error is generated, no change is made to the contents of params.
56
57 For OpenGL versions 1.3 and greater, or when the ARB_multitexture
58 extension is supported, glGetTexGen returns the texture coordinate
59 generation parameters for the active texture unit.
60
62 GL_INVALID_ENUM is generated if coord or pname is not an accepted
63 value.
64
65 GL_INVALID_OPERATION is generated if glGetTexGen is executed between
66 the execution of glBegin() and the corresponding execution of glEnd().
67
69 glActiveTexture(), glTexGen()
70
72 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
73 under the SGI Free Software B License. For details, see
74 http://oss.sgi.com/projects/FreeB/.
75
77 opengl.org
78
79
80
81opengl.org 07/13/2018 GLGETTEXGEN(3G)