DirectDraw Structures (Compact 2013)
3/26/2014
The following topics contain information about the structures used with DirectDraw.
Structure |
Description |
---|---|
Passes details about blit operations to the IDirectDrawSurface::AlphaBlt method. |
|
Contains a color representation with four channels. |
|
Passes raster operations, effects, and override information to the IDirectDrawSurface::Blt method. |
|
Represents the capabilities of the hardware exposed through the DirectDraw object. |
|
Defines the color controls associated with a DirectDrawVideoPort object, an overlay surface, or a primary surface. |
|
Describes a source color key, destination color key, or color space. |
|
Contains information identifying the DirectDraw device. |
|
Describes a gamma ramp with red, green, and blue data. |
|
Passes override information to the IDirectDrawSurface::UpdateOverlay method. |
|
Describes the pixel format of a DirectDrawSurface object for the IDirectDrawSurface::GetPixelFormat method. |
|
Defines the capabilities of a DirectDrawSurface object. |
|
Contains a description of a surface and is used to pass surface parameters to the IDirectDraw::CreateSurface and IDirectDrawSurface::GetSurfaceDesc methods. |
Remarks
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.