typedef struct _DDSURFACEDESC{
DWORD dwSize;
DWORD dwFlags;
DWORD dwHeight;
DWORD dwWidth;
LONG lPitch,
DWORD dwBackBufferCount,
union
{
DWORD dwMipMapCount,
DWORD dwZBufferBitDepth,
DWORD dwRefreshRate,
};
DWORD dwAlphaBitDepth;
DWORD dwReserved;
LPVOID lpSurface;
DDCOLORKEY ddckCKDestOverlay;
DDCOLORKEY ddckCKDestBlt;
DDCOLORKEY ddckCKSrcOverlay;
DDCOLORKEY ddckCKSrcBlt;
DDPIXELFORMAT ddpfPixelFormat;
DDSCAPS ddsCaps;
} DDSURFACEDESC, FAR* LPDDSURFACEDESC;
Is passed to the IDirectDraw::CreateSurface method with a description of the surface that should be created. The relevant members differ for each potential type of surface.
Size of the structure. This must be initialized before the structure is used.
Specifies the optional control flags.
All input members are valid.
Indicates the dwAlphaBitDepth member is valid.
Indicates the dwBackBufferCount member is valid.
Indicates the ddsCaps member is valid.
Indicates the ddckCKDestBlt member is valid.
Indicates the ddckCKDestOverlay member is valid.
Indicates the ddckCKSrcBlt member is valid.
Indicates the ddckCKSrcOverlay member is valid.
Indicates the dwHeight member is valid.
Indicates the lpSurface member is valid.
Indicates the dwMipMapCount member is valid.
Indicates the lPitch member is valid.
Indicates the ddpfPixelFormat member is valid.
Indicates the dwRefreshRate member is valid.
Indicates the dwWidth member is valid.
Indicates the dwZBufferBitDepth member is valid.
Height of surface.
Width of input surface.
Distance to start of next line (return value only).
Number of back buffers.
Number of mipmap levels.
Depth of z-buffer.
Refresh rate (used when the display mode is described).
Depth of alpha buffer.
Reserved.
Address of the associated surface memory.
Color key for destination overlay use.
Color key for destination blit use.
Color key for source overlay use.
Color key for source blit use.
Pixel format description of the surface.
ddsCaps
DirectDraw surface capabilities.