table of contents
GLGETTEXGEN(3G) | OpenGL Manual | GLGETTEXGEN(3G) |
NAME¶
glGetTexGen - return texture coordinate generation parameters
C SPECIFICATION¶
void glGetTexGendv(GLenum coord, GLenum pname, GLdouble * params);
void glGetTexGenfv(GLenum coord, GLenum pname, GLfloat * params);
void glGetTexGeniv(GLenum coord, GLenum pname, GLint * params);
PARAMETERS¶
coord
pname
params
DESCRIPTION¶
glGetTexGen returns in params selected parameters of a texture coordinate generation function that was specified using glTexGen(). coord names one of the (s, t, r, q) texture coordinates, using the symbolic constant GL_S, GL_T, GL_R, or GL_Q.
pname specifies one of three symbolic names:
GL_TEXTURE_GEN_MODE
GL_OBJECT_PLANE
GL_EYE_PLANE
NOTES¶
If an error is generated, no change is made to the contents of params.
For OpenGL versions 1.3 and greater, or when the ARB_multitexture extension is supported, glGetTexGen returns the texture coordinate generation parameters for the active texture unit.
ERRORS¶
GL_INVALID_ENUM is generated if coord or pname is not an accepted value.
GL_INVALID_OPERATION is generated if glGetTexGen is executed between the execution of glBegin() and the corresponding execution of glEnd().
SEE ALSO¶
glActiveTexture(), glTexGen()
COPYRIGHT¶
Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.
AUTHORS¶
opengl.org
05/02/2014 | opengl.org |