次の方法で共有


DirectDraw Structures (Compact 2013)

3/26/2014

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

Structure

Description

DDALPHABLTFX

Passes details about blit operations to the IDirectDrawSurface::AlphaBlt method.

DDARGB

Contains a color representation with four channels.

DDBLTFX

Passes raster operations, effects, and override information to the IDirectDrawSurface::Blt method.

DDCAPS

Represents the capabilities of the hardware exposed through the DirectDraw object.

DDCOLORCONTROL

Defines the color controls associated with a DirectDrawVideoPort object, an overlay surface, or a primary surface.

DDCOLORKEY

Describes a source color key, destination color key, or color space.

DDDEVICEIDENTIFIER

Contains information identifying the DirectDraw device.

DDGAMMARAMP

Describes a gamma ramp with red, green, and blue data.

DDOVERLAYFX

Passes override information to the IDirectDrawSurface::UpdateOverlay method.

DDPIXELFORMAT

Describes the pixel format of a DirectDrawSurface object for the IDirectDrawSurface::GetPixelFormat method.

DDSCAPS

Defines the capabilities of a DirectDrawSurface object.

DDSURFACEDESC

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.

See Also

Reference

DirectDraw Reference

Other Resources

DirectDraw
DirectDraw