IDirect3DDevice::SwapTextureHandles

HRESULT SwapTextureHandles(LPDIRECT3DTEXTURE lpD3DTex1,

LPDIRECT3DTEXTURE lpD3DTex2);

Swaps two texture handles.

·Returns D3D_OK if successful or an error otherwise.

lpD3DTex1 and lpD3DTex2

Addresses of the textures whose handles will be swapped when the method returns.

This method is useful when an application is changing all the textures in a complicated object.