Mirror Texture Address Mode

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The mirror texture address mode, identified by the D3DMTADDRESS_MIRROR member of the D3DMTEXTUREADDRESS enumerated type, causes Microsoft® Direct3D® Mobile to mirror the texture at every integer boundary. 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 D3DMTADDRESS_MIRROR results in the texture being applied three times in both the u- and v-directions. Every other row and column that it is applied to is a mirror image of the preceding row or column.

This is shown in the following illustration.

Aa915185.1357d1e4-7c5d-43ff-b83f-160c8d4aafa6(en-us,MSDN.10).gif

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

See Also

Concepts

Texture Addressing Modes