Wrap Texture Address Mode

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The wrap texture address mode, identified by the D3DMTADDRESS_WRAP member of the D3DMTEXTUREADDRESS enumerated type, makes Microsoft® Direct3D® Mobile repeat the texture on every integer junction. Suppose, for example, your application creates a square primitive and specifies texture coordinates of (0.0,0.0), (0.0,3.0), (3.0,3.0), and (3.0,0.0). Setting the texture addressing mode to D3DTADDRESS_WRAP results in the texture being applied three times in both the u-and v-directions.

This is shown in the following illustration.

Aa916107.6794cc91-a61f-49ea-931c-99b9ddf1e120(en-us,MSDN.10).gif

The effects of this texture address mode are similar to, but distinct from, those of the mirror mode. For more information, see Mirror Texture Address Mode.

See Also

Concepts

Texture Addressing Modes