D3DTEXTUREADDRESS

The D3DTEXTUREADDRESS enumerated type describes the supported texture addressing modes for the D3DRENDERSTATE_TEXTUREADDRESS render state in the D3DRENDERSTATETYPE enumerated type.

typedef enum _D3DTEXTUREADDRESS { 
    D3DTADDRESS_WRAP         = 1, 
    D3DTADDRESS_MIRROR       = 2, 
    D3DTADDRESS_CLAMP        = 3, 
    D3DTADDRESS_BORDER       = 4,
    D3DTADDRESS_FORCE_DWORD  = 0x7fffffff, 
} D3DTEXTUREADDRESS; 
 

Members

D3DTADDRESS_WRAP
The D3DRENDERSTATE_WRAPU and D3DRENDERSTATE_WRAPV render states of the D3DRENDERSTATETYPE enumerated type are used. This is the default setting.
D3DTADDRESS_MIRROR
Equivalent to a tiling texture-addressing mode (that is, when neither D3DRENDERSTATE_WRAPU nor D3DRENDERSTATE_WRAPV is used) 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 greater than 1.0 are set to 1.0, and values less than 0.0 are set to 0.0.
D3DTADDRESS_BORDER
Texture coordinates outside the range [0.0, 1.0] are set to the border color, which is a new render state corresponding to D3DRENDERSTATE_BORDERCOLOR in the D3DRENDERSTATETYPE enumerated type.

This member was introduced in DirectX 5.

D3DTADDRESS_FORCE_DWORD
Forces this enumerated type to be 32 bits in size.

Remarks

For more information about using the D3DRENDERSTATE_WRAPU and D3DRENDERSTATE_WRAPV render states, see Textures.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in d3dtypes.h.

See Also

D3DRENDERSTATETYPE