GLTEXENV - Online Linux Manual PageSection : 3G

NAME"glTexEnvf, glTexEnvi, glTexEnvfv, glTexEnviv − set texture environment parameters

C SPECIFICATIONvoid glTexEnvf( GLenum target, GLenum pname, GLfloat param )void glTexEnvi( GLenum target, GLenum pname, GLint param )

PARAMETERStarget  Specifies a texture environment. Must be ­GL_TEXTURE_ENV. pname  Specifies the symbolic name of a single-valued texture environment parameter. Must be ­GL_TEXTURE_ENV_MODE. param  Specifies a single symbolic constant, one of ­GL_MODULATE, ­GL_DECAL, ­GL_BLEND, or ­GL_REPLACE.

C SPECIFICATIONvoid glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params )void glTexEnviv( GLenum target, GLenum pname, const GLint *params )

PARAMETERStarget  Specifies a texture environment. Must be ­GL_TEXTURE_ENV. pname  Specifies the symbolic name of a texture environment parameter. Accepted values are ­GL_TEXTURE_ENV_MODE and ­GL_TEXTURE_ENV_COLOR. params  Specifies a pointer to a parameter array that contains either a single symbolic constant or an RGBA color.

DESCRIPTIONA texture environment specifies how texture values are interpreted when a fragment is textured. target must be ­GL_TEXTURE_ENV. pname can be either ­GL_TEXTURE_ENV_MODE or ­GL_TEXTURE_ENV_COLOR. If pname is ­GL_TEXTURE_ENV_MODE, then params is (or points to) the symbolic name of a texture function. Four texture functions may be specified: ­GL_MODULATE, ­GL_DECAL, ­GL_BLEND, and ­GL_REPLACE. A texture function acts on the fragment to be textured using the texture image value that applies to the fragment (see ­glTexParameter) and produces an RGBA color for that fragment. The following table shows how the RGBA color is produced for each of the three texture functions that can be chosen. C is a triple of color values (RGB) and A is the associated alpha value. RGBA values extracted from a texture image are in the range [0,1]. The subscript f refers to the incoming fragment, the subscript t to the texture image, the subscript c to the texture environment color, and subscript v indicates a value produced by the texture function. A texture image can have up to four components per texture element (see ­glTexImage1D, ­glTexImage2D, ­glTexImage3D, ­glCopyTexImage1D, and ­glCopyTexImage2D). In a one-component image, Lt indicates that single component. A two-component image uses Lt and At. A three-component image has only a color value, Ct. A four-component image has both a color value Ct and an alpha value At. Base internalTexture functions ­GL_MODULATE­GL_DECAL­GL_BLEND­GL_REPLACE ­GL_ALPHACv~=~CfundefinedCv~=~CfCv~=~Cf Av~=~AfAtAv~=~AfAv~=~At ­GL_LUMINANCECv~=~LtCfundefinedCv~=~(1-Lt)CfCv~=~Lt +LtCc 1 Av~=~Af Av~=~AfAv~=~Af ­GL_LUMINANCECv~=~LtCfundefinedCv~=~(1-Lt)CfCv~=~Lt _ALPHA +LtCc 2Av~=~AtAfAv~=~AtAfAv~=~At ­GL_INTENSITYCv~=~CfItundefinedCv~=~(1-It)Cf Cv~=~It +ItCc c  Av~=~AfItAv~=~(1-It)AfAv~=~It +ItAc ­GL_RGBCv~=~CtCfCv~=~CtCv~=~(1-Ct)CfCv~=~Ct +CtCc 3Av~=~AfAv~=~AfAv~=~AfAv~=~Af ­GL_RGBACv~=~CtCfCv~=~(1-At)CfCv~=~(1-Ct)CfCv~=~Ct +AtCt +CtCc 4Av~=~AtAfAv~=~AfAv~=~AtAfAv~=~At .bp If pname is ­GL_TEXTURE_ENV_COLOR, params is a pointer to an array that holds an RGBA color consisting of four values. Integer color components are interpreted linearly such that the most positive integer maps to 1.0, and the most negative integer maps to -1.0. The values are clamped to the range [0,1] when they are specified. Cc takes these four values. ­GL_TEXTURE_ENV_MODE defaults to ­GL_MODULATE and ­GL_TEXTURE_ENV_COLOR defaults to (0, 0, 0, 0).

NOTES­GL_REPLACE may only be used if the GL version is 1.1 or greater. Internal formats other than 1, 2, 3, or 4 may only be used if the GL version is 1.1 or greater. When the ­GL_ARB_multitexture extension is supported, ­glTexEnv controls the texture environment for the current active texture unit, selected by ­glActiveTextureARB. #­GL_INVALID_ENUM is generated when target or pname is not one of the accepted defined values, or when params should have a defined constant value (based on the value of pname) and does not. ­GL_INVALID_OPERATION is generated if ­glTexEnv is executed between the execution of ­glBegin and the corresponding execution of ­glEnd.

ASSOCIATED GETS­glGetTexEnv

SEE ALSO­glActiveTextureARB(3G), ­glCopyPixels(3G), ­glCopyTexImage1D(3G), ­glCopyTexImage2D(3G), ­glCopyTexSubImage1D(3G), ­glCopyTexSubImage2D(3G), ­glCopyTexSubImage3D(3G), ­glTexImage1D(3G), ­glTexImage2D(3G), ­glTexImage3D(3G), ­glTexParameter(3G), ­glTexSubImage1D(3G), ­glTexSubImage2D(3G), ­glTexSubImage3D(3G)
0
Johanes Gumabo
Data Size   :   30,578 byte
man-g___lTexEnv.3GBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 165,144
Visitor ID   :     :  
Visitor IP   :   3.15.34.105   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|g___lTexEnv.3G|148|bp|.bp )