The D3DEnumTextureFormatsCallback function is an application-defined callback function for the IDirect3DDevice::EnumTextureFormats and IDirect3DDevice2::EnumTextureFormats methods.
HRESULT CALLBACK D3DEnumTextureFormatsCallback(
LPDDSURFACEDESC lpDdsd,
LPVOID lpUserArg
);
Applications should return D3DENUMRET_OK to continue the enumeration, or D3DENUMRET_CANCEL to cancel it.
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);
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.