The glGetTexEnvfv and glGetTexEnviv functions return texture environment parameters.
void glGetTexEnvfv(
GLenum target,
GLenum pname,
GLfloat * params
);
void glGetTexEnviv(
GLenum target,
GLenum pname,
GLint * params
);
The glGetTexEnv function returns in params selected values of a texture environment that was specified with glTexEnv. The target parameter specifies a texture environment. Currently, only one texture environment is defined and supported: GL_TEXTURE_ENV.
The pname parameter names a specific texture environment parameter.
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 | target or pname was not an accepted value. |
GL_INVALID_OPERATION | glGetTexEnv 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.