The IDirect3DDevice2::SwapTextureHandles method swaps two texture handles.
HRESULT SwapTextureHandles(
LPDIRECT3DTEXTURE2 lpD3DTex1,
LPDIRECT3DTEXTURE2 lpD3DTex2
);
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value is an error.
This method is useful when an application is changing all the textures in a complicated object.
In the IDirect3DDevice interface, this method requires pointers to IDirect3DTexture interfaces, not IDirect3DTexture2 interfaces.
Windows NT: Use version 5.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in d3d.h.
Import Library: Use ddraw.lib.