DirectDraw Structures
A version of this page is also available for
4/8/2010
The following topics contain information about the following structures used with DirectDraw.
Programming element | Description |
---|---|
This structure passed details about blit operations to the IDirectDrawSurface::AlphaBlt method. |
|
This structure contains a color representation with four channels. |
|
This structure passes raster operations, effects, and override information to the IDirectDrawSurface::Blt method. |
|
This structure represents the capabilities of the hardware exposed through the DirectDraw object. |
|
This structure defines the color controls associated with a DirectDrawVideoPort object, an overlay surface, or a primary surface. |
|
This structure describes a source color key, destination color key, or color space. |
|
This structure contains information identifying the DirectDraw device. |
|
This structure describes a gamma ramp with red, green, and blue data. |
|
This structure passes override information to the IDirectDrawSurface::UpdateOverlay method. |
|
This structure describes the pixel format of a DirectDrawSurface object for the IDirectDrawSurface::GetPixelFormat method. |
|
This structure defines the capabilities of a DirectDrawSurface object. |
|
This structure contains a description of a surface. This structure is used to pass surface parameters to the IDirectDraw::CreateSurface and IDirectDrawSurface::SetSurfaceDesc methods. |
Note
The memory for all DirectX structures should be initialized to zero before use. In addition, all structures that contain a dwSize member should set the member to the size of the structure, in bytes, before use.
Note
The following example performs these tasks on a common structure, DDCAPS.
DDCAPS ddcaps; // Cannot use this yet.
ZeroMemory(&ddcaps, sizeof(DDCAPS));
ddcaps.dwSize = sizeof(DDCAPS);
// Now the structure can be used.