Returns texture environment parameters.
OpenGL C bindings library: libGL.a
void glGetTexEnvfv(GLenum Target, GLenum ParameterName, GLfloat *ParameterValues)
void glGetTexEnviv(GLenum Target, GLenum ParameterName, GLint *ParameterValues)
The glGetTexEnv subroutine returns in the ParameterValues parameter selected values of a texture environment that was specified with glTexEnv. The Target parameter specifies a texture environment. Currently only the GL_TEXTURE_ENV texture environment is defined and supported.
ParameterName names a specific texture environment parameter. The two parameters are:
If an error is generated, no change is made to the contents of ParameterValues.
GL_INVALID_ENUM | Either Target or ParameterName is not an accepted value. |
GL_INVALID_OPERATION | The glGetTexEnv subroutine is called between a call to glBegin and the corresponding call to glEnd. |
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
The glBegin or glEnd subroutine, glTexEnv subroutine.