glGetTexEnvf , glGetTexEnvx - return texture environment parameters
void glGetTexEnvf(GLenum target,
GLenum pname,
GLfloat * params)
void glGetTexEnvx(GLenum target,
GLenum pname,
GLfixed * params)targetSpecifies a texture environment, which must be GL_TEXTURE_ENV.
pnameSpecifies 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.
paramsReturns 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_MODEparams returns the single-valued texture environment mode, a symbolic constant. The initial value is GL_MODULATE.
GL_TEXTURE_ENV_COLORparams 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/.