Partager via


TextureStateManager.TextureCoordinateIndex Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines the index of the texture coordinate set to use with the current texture stage.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
Public Property TextureCoordinateIndex As Integer
    Get
    Set
'Usage
Dim instance As TextureStateManager
Dim value As Integer

value = instance.TextureCoordinateIndex

instance.TextureCoordinateIndex = value
public int TextureCoordinateIndex { get; set; }
public:
property int TextureCoordinateIndex {
    int get ();
    void set (int value);
}
member TextureCoordinateIndex : int with get, set

Property Value

Type: System.Int32
Index of the texture coordinate set.

Remarks

Up to eight sets of texture coordinates per vertex can be specified. If a vertex does not include a set of texture coordinates at the specified index, the system reverts to the u and v coordinates (0,0 0,0) by default.

When rendering with vertex shaders, each stage's texture coordinate index must be set to its default value. The default index for each stage is equal to the stage index. Set this state to the zero-based index of the coordinate set for each vertex that this texture stage uses.

Additionally, applications can include TextureCoordinateIndex values as part of a logical OR with the index being set, to request that DirectX automatically generate the input texture coordinates for a texture transformation.

The system uses the index strictly to determine texture wrapping mode when using a TextureCoordinateIndex value other than PassThru, which resolves to zero. These flags are most useful when performing environment mapping.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

TextureStateManager Class

TextureStateManager Members

Microsoft.WindowsMobile.DirectX.Direct3D Namespace