typedef struct _VIDEOMEMORYINFO{
FLATPTR fpPrimary;
DWORD dwFlags;
DWORD dwDisplayWidth;
DWORD dwDisplayHeight;
LONG lDisplayPitch;
DDPIXELFORMAT ddpfDisplay;
DWORD dwOffscreenAlign;
DWORD dwOverlayAlign;
DWORD dwTextureAlign;
DWORD dwZBufferAlign;
DWORD dwAlphaAlign;
PVOID pvPrimary;
} VIDEOMEMORYINFO;
The VIDEOMEMORYINFO structure describes the general format of the primary surface.
Members
fpPrimary
Specifies the offset to the primary surface.
dwFlags
Bitmask describing the fields of ddpfDisplay that are supported by the driver.
dwDisplayWidth
Specifies the current width of the display.
dwDisplayHeight
Specifies the current height of the display.
lDisplayPitch
Specifies the current pitch of the display.
ddpfDisplay
DDPIXELFORMAT structure in which the pixel format of the display is described.
dwOffscreenAlign
Specifies the byte alignment for offscreen surfaces.
dwOverlayAlign
Specifies the byte alignment for the overlay planes.
dwTextureAlign
Specifies the byte alignment for textures.
dwZBufferAlign
Specifies the byte alignment for the depth buffer.
dwAlphaAlign
Specifies the byte alignment for alpha.
pvPrimary
Kernel-mode pointer to the beginning of the primary surface.
Comments
The VIDEOMEMORYINFO structure is a member of the DD_HALINFO structure. It is initialized and returned by the driver’s DrvGetDirectDrawInfo routine.