共用方式為


Border Color Texture Address Mode

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The border color texture address mode, identified by the D3DMTADDRESS_BORDER member of the D3DMTEXTUREADDRESS enumerated type, causes Microsoft® Direct3D® Mobile to use an arbitrary color, known as the border color, for any texture coordinates outside the range of 0.0 through 1.0, inclusive.

This is shown in the following illustration in which the application specifies that the texture be applied to the primitive using a red border.

Aa911346.38e10c25-e88a-4a62-8315-865cd3b83e30(en-us,MSDN.10).gif

Applications set the border color by calling IDirect3DMobileDevice::SetTextureStageState. Set the first parameter for the call to the desired texture stage identifier, the second parameter to the D3DMTSS_BORDERCOLOR stage state value (see D3DMTEXTURESTAGESTATETYPE) and the third parameter to the new RGBA border color.

See Also

Concepts

Texture Addressing Modes