These functions return texture coordinate generation parameters.
void glGetTexGendv(
GLenum coord,
GLenum pname,
GLdouble * params
);
void glGetTexGenfv(
GLenum coord,
GLenum pname,
GLfloat * params
);
void glGetTexGeniv(
GLenum coord,
GLenum pname,
GLint * params
);
The glGetTexGen function returns in params selected parameters of a texture-coordinate generation function that you specified with glTexGen. The coord parameter names one of the (s,t,r,q) texture coordinates, using the symbolic constant GL_S, GL_T, GL_R, or GL_Q.
If an error is generated, no change is made to the contents of params.
The following are the error codes generated and their conditions.
Error Code | Condition |
---|---|
GL_INVALID_ENUM | coord or pname was not an accepted value. |
GL_INVALID_OPERATION | glGetTexGen was called between a call to glBegin and the corresponding call to glEnd. |
Windows NT: Use version 3.5 and later.
Windows: Use Windows 95 and later.
Windows CE: Unsupported.
Header: Declared in gl.h.
Import Library: Link with opengl32.lib.