IDirect3DDevice::SwapTextureHandles

The IDirect3DDevice::SwapTextureHandles method swaps two texture handles.

HRESULT SwapTextureHandles(
  LPDIRECT3DTEXTURE lpD3DTex1,  
  LPDIRECT3DTEXTURE lpD3DTex2  
);
 

Parameters

lpD3DTex1 and lpD3DTex2
Addresses of the IDirect3DTexture interfaces for the textures whose handles will be swapped.

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.

QuickInfo

  Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in d3d.h.
  Import Library: Use ddraw.lib.