Platform SDK: DirectX

CONST_D3DTEXTURESTAGESTATETYPE

The CONST_D3DTEXTURESTAGESTATETYPE enumeration defines texture stage states. Constants of this enumeration are used with the Direct3DDevice7.GetTextureStageState and Direct3DDevice7.SetTextureStageState methods to retrieve and set texture state values.

Enum CONST_D3DTEXTURESTAGESTATETYPE
    D3DTSS_ADDRESS        = 12 
    D3DTSS_ADDRESSU       = 13 
    D3DTSS_ADDRESSV       = 14 
    D3DTSS_ALPHAARG1      = 5  
    D3DTSS_ALPHAARG2      = 6  
    D3DTSS_ALPHAOP        = 4  
    D3DTSS_BORDERCOLOR    = 15 
    D3DTSS_COLORARG1      = 2  
    D3DTSS_COLORARG2      = 3  
    D3DTSS_COLOROP        = 1  
    D3DTSS_MAGFILTER      = 16 
    D3DTSS_MAXANISOTROPY  = 21 
    D3DTSS_MAXMIPLEVEL    = 20 
    D3DTSS_MINFILTER      = 17 
    D3DTSS_MIPFILTER      = 18 
    D3DTSS_TEXCOORDINDEX  = 11 
    D3DTSS_TEXTURETRANSFORMFLAGS = 24
End Enum
D3DTSS_ADDRESS
Member of the CONST_D3DTEXTUREADDRESS enumeration. Selects the texture addressing method for both the u and v coordinates. The default is D3DTADDRESS_WRAP.
D3DTSS_ADDRESSU
Member of the CONST_D3DTEXTUREADDRESS enumeration. Selects the texture addressing method for the u coordinate. The default is D3DTADDRESS_WRAP.
D3DTSS_ADDRESSV
Member of the CONST_D3DTEXTUREADDRESS enumeration. Selects the texture addressing method for the v coordinate. The default value is D3DTADDRESS_WRAP.
D3DTSS_ALPHAARG1
The texture stage state is the first alpha argument for the stage, identified by a texture argument flag. The default argument is D3DTA_TEXTURE. If no texture is set for this stage, the default argument is D3DTA_DIFFUSE.
D3DTSS_ALPHAARG2
The texture stage state is the second alpha argument for the stage, identified by a texture argument flag. The default argument is D3DTA_CURRENT.
D3DTSS_ALPHAOP
The texture stage state is texture alpha blending operation identified by one of the constants of the CONST_D3DTEXTUREOP enumeration. The default value for the first texture stage (stage 0) is D3DTOP_SELECTARG1, and for all other stages the default is D3DTOP_DISABLE.
D3DTSS_BORDERCOLOR
Value that describes the color to be used for rasterizing texture coordinates outside the [0.0,1.0] range. The default color is 0x00000000.
D3DTSS_COLORARG1
The texture stage state is the first color argument for the stage, identified by a texture argument flag. The default argument is D3DTA_TEXTURE.
D3DTSS_COLORARG2
The texture stage state is the second color argument for the stage, identified by a texture argument flag. The default argument is D3DTA_CURRENT.
D3DTSS_COLOROP
The texture stage state is a texture color blending operation identified by one of the constants of the CONST_D3DTEXTUREOP enumeration. The default value for the first texture stage (stage 0) is D3DTOP_MODULATE, and for all other stages the default is D3DTOP_DISABLE.
D3DTSS_MAGFILTER
Member of the CONST_D3DTEXTUREMAGFILTER enumeration that indicates the texture magnification filter to be used when rendering the texture onto primitives. The default value is D3DTFG_POINT.
D3DTSS_MAXANISOTROPY
Maximum level of anisotropy. The default value is 1.
D3DTSS_MAXMIPLEVEL
Maximum level-of-detail mipmap that the application will allow. Zero, which is the default, indicates that all levels can be used.
D3DTSS_MINFILTER
Member of the CONST_D3DTEXTUREMINFILTER enumeration that indicates the texture magnification filter to be used when rendering the texture onto primitives. The default value is D3DTFN_POINT.
D3DTSS_MIPFILTER
Member of the CONST_D3DTEXTUREMIPFILTER enumeration that indicates the texture magnification filter to be used when rendering the texture onto primitives. The default value is D3DTFP_NONE.
D3DTSS_TEXCOORDINDEX
Index of the texture coordinate set to use with this texture stage. The default index is 0. Set this state to the zero-based index of the texture set at for each vertex that this texture stage will use. (You can specify up to eight sets of texture coordinates per vertex.) If a vertex does not include a set of texture coordinates at the specified index, the system defaults to using the u, v coordinates (0,0).

You can include flags from the CONST_D3DTEXCOORDINDEXFLAGS enumeration with the index you specify for this state to modify how the system interprets the index value. For more information, see Configuring Automatically Generated Texture Coordinates.

D3DTSS_TEXTURETRANSFORMFLAGS
Member of the CONST_D3DTEXTURETRANSFORMFLAGS enumeration that controls the transformation of texture coordinates for this texture stage. The default value is D3DTTFF_DISABLE.