Setting and Retrieving Texture Addressing Modes

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

You can set texture addressing modes for individual texture stages by calling the IDirect3DMobileDevice::SetTextureStageState method. Specify the desired texture stage identifier in the first parameter. Set the second parameter to D3DMTSS_ADDRESSU, D3DMTSS_ADDRESSV, or D3DMTSS_ADDRESSW values (see D3DMTEXTURESTAGESTATETYPE) to update the u-, v-, or w-addressing modes individually. The third parameter you pass to SetTextureStageState determines which mode is being set. This can be any member of the D3DMTEXTUREADDRESS enumerated type. To retrieve the current texture address mode for a texture stage, call IDirect3DMobileDevice::GetTextureStageState, using the D3DMTSS_ADDRESSU, D3DMTSS_ADDRESSV, or D3DMTSS_ADDRESSW elements of the D3DMTEXTURESTAGESTATETYPE enumeration to identify the address mode about which you want information.

See Also

Concepts

Texture Addressing Modes