Microsoft DirectX 8.0 (Visual Basic) |
You can set texture addressing modes for individual texture stages by calling the Direct3DDevice8.SetTextureStageState method. Specify the desired texture stage identifier in the first parameter. Set the second parameter to D3DTSS_ADDRESSU, D3DTSS_ADDRESSV, or D3DTSS_ADDRESSW values 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 CONST_D3DTEXTUREADDRESS enumeration.
To retrieve the current texture address mode for a given texture stage, call Direct3DDevice8.GetTextureStageState, using the D3DTSS_ADDRESSU, D3DTSS_ADDRESSV, or D3DTSS_ADDRESSW members of the CONST_D3DTEXTURESTAGESTATETYPE enumeration to the address mode about which you want information.