Condividi tramite


TextureStateManager.TextureCoordinateIndex Property

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
'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);
}
/** @property */
public int get_TextureCoordinateIndex ()

/** @property */
public void set_TextureCoordinateIndex (int value)
public function get TextureCoordinateIndex () : int

public function set TextureCoordinateIndex (value : int)
Not applicable.

Property Value

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.

Platforms

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

TextureStateManager Class
TextureStateManager Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace