Microsoft DirectX 9.0 SDK Update (October 2004)

TextureAddress Enumeration

Language:

Note: This documentation is preliminary and is subject to change.

Defines constants that describe the supported texture-addressing modes.

Definition

Visual Basic .NET Public Enum TextureAddress
C# public enum TextureAddress
Managed C++ __value public enum TextureAddress
JScript .NET public enum TextureAddress

Members

Member Value Description
MirrorOnce 5 Similar to Mirror and Clamp. Takes the absolute value of the texture coordinate (thus, mirroring around 0), and then clamps to the maximum value. The most common usage is for volume textures, where support for the full MirrorOnce texture-addressing mode is not necessary, but the data is symmetrical around the one axis.
Border 4 Texture coordinates outside the range [0.0, 1.0] are set to the border color.
Clamp 3 Texture coordinates outside the range [0.0, 1.0] are set to the texture color at 0.0 or 1.0, respectively.
Mirror 2 Similar to Wrap, except that the texture is flipped at every integer junction. For u values between 0 and 1, for example, the texture is addressed normally; between 1 and 2, the texture is flipped (mirrored); between 2 and 3, the texture is normal again, and so on.
Wrap 1 Tiles the texture at every integer junction. For example, for u values between 0 and 3, the texture is repeated three times. No mirroring is performed.

Enumeration Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center