Compartilhar via


DirectDraw Structures

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The following topics contain information about the following structures used with DirectDraw.

Programming element Description

DDALPHABLTFX

This structure passed details about blit operations to the IDirectDrawSurface::AlphaBlt method.

DDARGB

This structure contains a color representation with four channels.

DDBLTFX

This structure passes raster operations, effects, and override information to the IDirectDrawSurface::Blt method.

DDCAPS

This structure represents the capabilities of the hardware exposed through the DirectDraw object.

DDCOLORCONTROL

This structure defines the color controls associated with a DirectDrawVideoPort object, an overlay surface, or a primary surface.

DDCOLORKEY

This structure describes a source color key, destination color key, or color space.

DDDEVICEIDENTIFIER

This structure contains information identifying the DirectDraw device.

DDGAMMARAMP

This structure describes a gamma ramp with red, green, and blue data.

DDOVERLAYFX

This structure passes override information to the IDirectDrawSurface::UpdateOverlay method.

DDPIXELFORMAT

This structure describes the pixel format of a DirectDrawSurface object for the IDirectDrawSurface::GetPixelFormat method.

DDSCAPS

This structure defines the capabilities of a DirectDrawSurface object.

DDSURFACEDESC

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.

See Also

Reference

DirectDraw Reference