Name
gl.GetTexEnv -- return texture environment parameters
Synopsis
paramsArray = gl.GetTexEnv(pname)
Function
gl.GetTexEnv() returns a table containing selected values of a texture environment that was specified with gl.TexEnv(). pname names a specific texture environment parameter. The two parameters are as follows:

#GL_TEXTURE_ENV_MODE
Returns the single-valued texture environment mode, a symbolic constant.

#GL_TEXTURE_ENV_COLOR
Returns four floating-point values that are the texture environment color.

Please consult an OpenGL reference manual for more information.

Inputs
pname
specifies the symbolic name of a texture environment parameter (see above for possible values)
Results
paramsArray
table containing the requested data
Errors
#GL_INVALID_ENUM is generated if pname is not an accepted value.

#GL_INVALID_OPERATION is generated if gl.GetTexEnv() is called between a call to glBegin and the corresponding execution to glEnd.


Show TOC