D3DEnumPixelFormatsCallback

The D3DEnumPixelFormatsCallback is an application-defined callback function for the IDirect3D3::EnumZBufferFormats, and IDirect3DDevice3::EnumTextureFormats methods.

HRESULT CALLBACK D3DEnumPixelFormatsCallback(
  LPDDPIXELFORMAT lpDDPixFmt,  
  LPVOID          lpContext    
); 
 

Parameters

lpDDPixFmt
Address of a DDPIXELFORMAT structure that describes the enumerated pixel format.
lpContext
Address of application-defined data passed to the function by the caller.

Return Values

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

Remarks

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

typedef HRESULT (WINAPI* LPD3DENUMPIXELFORMATSCALLBACK)(LPDDPIXELFORMAT lpDDPixFmt, LPVOID lpContext);
 

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in d3dcaps.h.
  Import Library: User-defined.