IDirect3DDevice2::SwapTextureHandles
The IDirect3DDevice2::SwapTextureHandles method swaps two texture handles.
HRESULT SwapTextureHandles(
LPDIRECT3DTEXTURE2 lpD3DTex1,
LPDIRECT3DTEXTURE2 lpD3DTex2
);
Parameters
lpD3DTex1 and lpD3DTex2
Addresses of the textures whose handles will be swapped when the method returns.
Return Values
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value is an error.
Remarks
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.
QuickInfo
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.