GLTEXENV
NAMEC SPECIFICATION
PARAMETERS
C SPECIFICATION
PARAMETERS
DESCRIPTION
NOTES
ASSOCIATED GETS
SEE ALSO
NAME
glTexEnvf, glTexEnvi, glTexEnvfv, glTexEnviv − set texture environment parameters
C SPECIFICATION
void glTexEnvf( GLenum target,
GLenum pname, | |
GLfloat param ) |
void glTexEnvi( GLenum target,
GLenum pname, | |
GLint param ) |
PARAMETERS
target |
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 SPECIFICATION
void
glTexEnvfv( GLenum target,
GLenum pname,
const GLfloat *params ) |
void glTexEnviv( GLenum target,
GLenum pname, | |
const GLint *params ) |
PARAMETERS
target |
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. |
DESCRIPTION
A 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, $L sub t$ indicates that single component. A two-component image uses $L sub t$ and $A sub t$. A three-component image has only a color value, $C sub t$. A four-component image has both a color value $C sub t$ and an alpha value $A sub t$.
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. $C sub c$ 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)
More Linux Commands
manpages/gnutls_anon_free_server_credentials.3.html
gnutls_anon_free_server_credentials(3) - API function.......
gnutls_anon_free_server_credentials.3 - This structure is complex enough to manipulate directly thus this helper function is provided in order to free (dealloca
manpages/perl5181delta.1.html
perl5181delta(1) what is new for perl v5.18.1 (Man Page)....
This document describes differences between the 5.18.0 release and the 5.18.1 release. If you are upgrading from an earlier release such as 5.16.0, first read p
manpages/Tcl_FSAccess.3.html
Tcl_FSAccess(3) - procedures to interact with any filesystem
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta
manpages/glMultiTexCoord4dARB.3gl.html
glMultiTexCoord4dARB(3gl) - set the current texture coordina
glMultiTexCoordARB specifies texture coordinates in one, two, three, or four dimensions. glMultiTexCoord1ARB sets the current texture coordinates to (s, 0, 0, 1
manpages/Devel::SelfStubber.3pm.html
Devel::SelfStubber(3pm) - generate stubs for a SelfLoading m
Devel::SelfStubber prints the stubs you need to put in the module before the __DATA__ token (or you can get it to print the entire module with stubs correctly p
manpages/gnutls_pkcs11_delete_url.3.html
gnutls_pkcs11_delete_url(3) - API function - Linux man page
This function will delete objects matching the given URL. Note that not all tokens support the delete operation. RETURNS On success, the number of objects delet
manpages/brk.2.html
brk(2) - change data segment size - Linux manual page.......
brk() and sbrk() change the location of the program break, which defines the end of the processs data segment (i.e., the program break is the first location aft
manpages/Tcl_SetWideIntObj.3.html
Tcl_SetWideIntObj(3) - manipulate Tcl objects as integer val
These procedures are used to create, modify, and read Tcl objects that │ hold integral values. │ The different routines exist to accommodate differe
manpages/pnmquantall.1.html
pnmquantall(1) run Pnmquant on a bunch of files all at once,
This program is part of Netpbm(1) pnmquantall takes a bunch of Netpbm image files as input, chooses ncolors colors to best represent all of the images, maps the
manpages/Tcl_GetReturnOptions.3.html
Tcl_GetReturnOptions(3) - retrieve or record information abo
The Tcl_SetReturnOptions and Tcl_GetReturnOptions routines expose the │ same capabilities as the return and catch commands, respectively, in │ the f
manpages/statvfs.3.html
statvfs(3) - get file system statistics - Linux manual page
The function statvfs() returns information about a mounted filesystem. path is the pathname of any file within the mounted filesystem. buf is a pointer to a sta
manpages/pkey.1ssl.html
pkey(1ssl) public or private key processing tool (Man Page)
The pkey command processes public or private keys. They can be converted between various forms and their components printed out. COMMAND OPTIONS -inform DER|PEM
