Microsoft DirectX 8.1 (Visual Basic)

CONST_D3DTEXTUREADDRESS

Defines constants that describe the supported texture-addressing modes.

Enum CONST_D3DTEXTUREADDRESS
    D3DTADDRESS_WRAP       = 1
    D3DTADDRESS_MIRROR     = 2
    D3DTADDRESS_CLAMP      = 3
    D3DTADDRESS_BORDER     = 4
    D3DTADDRESS_MIRRORONCE = 5
End Enum

Constants

D3DTADDRESS_WRAP
Tile 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.
D3DTADDRESS_MIRROR
Similar to D3DTADDRESS_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.
D3DTADDRESS_CLAMP
Texture coordinates outside the range [0.0, 1.0] are set to the texture color at 0.0 or 1.0, respectively.
D3DTADDRESS_BORDER
Texture coordinates outside the range [0.0, 1.0] are set to the border color.
D3DTADDRESS_MIRRORONCE
Similar to D3DTADDRESS_MIRROR and D3DTADDRESS_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 D3DTADDRESS_MIRRORONCE texture-addressing mode is not necessary, but the data is symmetric around the one axis.

Remarks

These flags are used to set the value of the D3DTSS_ADDRESSU, D3DTSS_ADDRESSV, and D3DTSS_ADDRESSW texture stage states for the CONST_D3DTEXTURESTAGESTATETYPE enumeration.

See Also

CONST_D3DTEXTURESTAGESTATETYPE