glGetTexEnvf
, glGetTexEnvx
- return texture environment parameters
void glGetTexEnvf(GLenum target, GLenum pname, GLfloat * params) void glGetTexEnvx(GLenum target, GLenum pname, GLfixed * params)
target
Specifies a texture environment, which must be GL_TEXTURE_ENV
.
pname
Specifies the symbolic name of a texture environment parameter. Which can be either GL_TEXTURE_ENV_MODE
, GL_TEXTURE_ENV_COLOR
, GL_TEXTURE_WRAP_S
, GL_TEXTURE_WRAP_T
, or GL_GENERATE_MIPMAP
.
params
Returns the requested data.
glGetTexParameter
returns in params
selected values of a texture environment that was specified with glTexEnv. target
specifies a texture environment. Currently, only one texture environment is defined and supported: GL_TEXTURE_ENV
.
pname
names a specific texture environment parameter, as follows:
GL_TEXTURE_ENV_MODE
params
returns the single-valued texture environment mode, a symbolic constant. The initial value is GL_MODULATE
.
GL_TEXTURE_ENV_COLOR
params
returns four fixed or floating-point values that are the texture environment color. The initial value is (0, 0, 0, 0)
.
If an error is generated, no change is made to the contents of params
.
GL_INVALID_ENUM
is generated if target
or pname
is not one of the accepted defined values.
Copyright © 2003-2004 Silicon Graphics, Inc.
This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.