1GLGETTEXENV(3G)                                                GLGETTEXENV(3G)
2
3
4

NAME

6       glGetTexEnvfv, glGetTexEnviv - return texture environment parameters
7
8

C SPECIFICATION

10       void glGetTexEnvfv( GLenum target,
11                           GLenum pname,
12                           GLfloat *params )
13       void glGetTexEnviv( GLenum target,
14                           GLenum pname,
15                           GLint *params )
16
17

PARAMETERS

19       target  Specifies a texture environment.  Must be GL_TEXTURE_ENV.
20
21       pname   Specifies the symbolic name of a texture environment parameter.
22               Accepted      values      are      GL_TEXTURE_ENV_MODE      and
23               GL_TEXTURE_ENV_COLOR.
24
25       params  Returns the requested data.
26

DESCRIPTION

28       glGetTexEnv  returns in params selected values of a texture environment
29       that was specified with glTexEnv.  target specifies a texture  environ‐
30       ment.   Currently,  only  one  texture  environment is defined and sup‐
31       ported: GL_TEXTURE_ENV.
32
33       pname names a specific texture environment parameter, as follows:
34
35       GL_TEXTURE_ENV_MODE
36                 params returns the single-valued texture environment mode,  a
37                 symbolic constant. The initial value is GL_MODULATE.
38
39       GL_TEXTURE_ENV_COLOR
40                 params returns four integer or floating-point values that are
41                 the  texture  environment  color.    Integer   values,   when
42                 requested,  are  linearly  mapped from the internal floating-
43                 point representation such that 1.0 maps to the most  positive
44                 representable  integer,  and  -1.0  maps to the most negative
45                 representable integer. The initial value is (0, 0, 0, 0).
46

NOTES

48       If an error is generated, no change is made to the contents of params.
49
50       When  the  GL_ARB_multitexture  extension  is  supported,   glGetTexEnv
51       returns the texture environment parameters for the active texture unit.
52

ERRORS

54       GL_INVALID_ENUM  is  generated  if  target  or pname is not an accepted
55       value.
56
57       GL_INVALID_OPERATION is generated if glGetTexEnv  is  executed  between
58       the execution of glBegin and the corresponding execution of glEnd.
59

SEE ALSO

61       glActiveTextureARB(3G), glTexEnv(3G)
62
63
64
65                                                               GLGETTEXENV(3G)
Impressum