D3DEnumTextureFormatsCallback

The D3DEnumTextureFormatsCallback function is an application-defined callback function for the IDirect3DDevice::EnumTextureFormats and IDirect3DDevice2::EnumTextureFormats methods.

HRESULT CALLBACK D3DEnumTextureFormatsCallback(
  LPDDSURFACEDESC lpDdsd,  
  LPVOID lpUserArg          
);
 

Parameters

lpDdsd
Address of a DDSURFACEDESC structure containing the texture information.
lpUserArg
Address of application-defined data passed to this callback function.

Return Values

Applications should return D3DENUMRET_OK to continue the enumeration, or D3DENUMRET_CANCEL to cancel it.

Remarks

When determining the order in which to call callback functions, the system searches the objects highest in the hierarchy first, and then calls their callback functions in the order in which they were created.

The LPD3DENUMTEXTUREFORMATSCALLBACK data type is defined as a pointer to this callback function:

typedef HRESULT (WINAPI* LPD3DENUMTEXTUREFORMATSCALLBACK)(LPDDSURFACEDESC lpDdsd, LPVOID lpContext);
 

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 d3dtypes.h.
  Import Library: User-defined.