typedef struct DD_CALLBACKS{
DWORD dwSize;
DWORD dwFlags;
PDD_DESTROYDRIVER DestroyDriver;
PDD_CREATESURFACE CreateSurface;
PDD_SETCOLORKEY SetColorKey;
PDD_SETMODE SetMode;
PDD_WAITFORVERTICALBLANK WaitForVerticalBlank;
PDD_CANCREATESURFACE CanCreateSurface;
PDD_CREATEPALETTE CreatePalette;
PDD_GETSCANLINE GetScanLine;
PDD_MAPMEMORY MapMemory;
} DD_CALLBACKS;
The DD_CALLBACKS structure contains pointers to the object callbacks that a device driver supports. The driver initializes this structure in DrvEnableDirectDraw.
Members
dwSize
Size, in bytes, of the DD_CALLBACKS structure. The driver must set this field to the size in bytes of the DD_HALINFO structure.
dwFlags
Bitmask that the driver initializes to indicate which object callbacks it supports. For every bit set in dwFlags, the driver must initialize the corresponding function pointer member of this structure. Bitfields are enumerated in ddrawint.h as DDHAL_CB32_Xxx.
DestroyDriver
Pointer to the driver-supplied DestroyDriver object callback.
CreateSurface
Pointer to the driver-supplied CreateSurface object callback.
SetColorKey
Pointer to the driver-supplied SetColorKey object callback.
SetMode
Pointer to the driver-supplied SetMode object callback.
WaitForVerticalBlank
Pointer to the driver-supplied WaitForVerticalBlank object callback.
CanCreateSurface
Pointer to the driver-supplied CanCreateSurface object callback.
CreatePalette
Pointer to the driver-supplied CreatePalette object callback.
GetScanLine
Pointer to the driver-supplied GetScanLine object callback.
MapMemory
Pointer to the driver-supplied MapMemory object callback.
See Also
DD_PALETTECALLBACKS, DD_SURFACECALLBACKS, DrvEnableDirectDraw