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;
Contains a description of the surface to be created. This structure is passed to the IDirectDraw2::CreateSurface method. The relevant members differ for each potential type of surface.
Size of the structure. This member must be initialized before the structure is used.
Optional control flags. One or more of the following flags:
Indicates that all input members are valid.
Indicates that the dwAlphaBitDepth member is valid.
Indicates that the dwBackBufferCount member is valid.
Indicates that the ddsCaps member is valid.
Indicates that the ddckCKDestBlt member is valid.
Indicates that the ddckCKDestOverlay member is valid.
Indicates that the ddckCKSrcBlt member is valid.
Indicates that the ddckCKSrcOverlay member is valid.
Indicates that the dwHeight member is valid.
Indicates that the dwMipMapCount member is valid.
Indicates that the lPitch member is valid.
Indicates that the ddpfPixelFormat member is valid.
Indicates that the dwRefreshRate member is valid.
Indicates that the dwWidth member is valid.
Indicates that 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.