typedef struct _DDCAPS{
DWORD dwSize;
DWORD dwCaps;
DWORD dwCaps2;
DWORD dwCKeyCaps;
DWORD dwFXCaps;
DWORD dwFXAlphaCaps;
DWORD dwPalCaps;
DWORD dwSVCaps;
DWORD dwAlphaBltConstBitDepths;
DWORD dwAlphaBltPixelBitDepths;
DWORD dwAlphaBltSurfaceBitDepths;
DWORD dwAlphaOverlayConstBitDepths;
DWORD dwAlphaOverlayPixelBitDepths;
DWORD dwAlphaOverlaySurfaceBitDepths;
DWORD dwZBufferBitDepths;
DWORD dwVidMemTotal;
DWORD dwVidMemFree;
DWORD dwMaxVisibleOverlays;
DWORD dwCurrVisibleOverlays;
DWORD dwNumFourCCCodes;
DWORD dwAlignBoundarySrc;
DWORD dwAlignSizeSrc;
DWORD dwAlignBoundaryDest;
DWORD dwAlignSizeDest;
DWORD dwAlignStrideAlign;
DWORD dwRops[DD_ROP_SPACE];
DDSCAPS ddsCaps;
DWORD dwMinOverlayStretch;
DWORD dwMaxOverlayStretch;
DWORD dwMinLiveVideoStretch;
DWORD dwMaxLiveVideoStretch;
DWORD dwMinHwCodecStretch;
DWORD dwMaxHwCodecStretch;
DWORD dwReserved1;
DWORD dwReserved2;
DWORD dwReserved3;
DWORD dwSVBCaps;
DWORD dwSVBCKeyCaps;
DWORD dwSVBFXCaps;
DWORD dwSVBRops[DD_ROP_SPACE];
DWORD dwVSBCaps;
DWORD dwVSBCKeyCaps;
DWORD dwVSBFXCaps;
DWORD dwVSBRops[DD_ROP_SPACE];
DWORD dwSSBCaps;
DWORD dwSSBCKeyCaps;
DWORD dwSSBCFXCaps;
DWORD dwSSBRops[DD_ROP_SPACE];
DWORD dwReserved4;
DWORD dwReserved5;
DWORD dwReserved6;
} DDCAPS,FAR* LPDDCAPS;
Represents the capabilities of the hardware exposed through the DirectDraw object. This structure contains a DDSCAPS structure used in this context to describe what kinds of DirectDrawSurface objects can be created. It may not be possible to simultaneously create all of the surfaces described by these capabilities. This structure is used with the IDirectDraw2::GetCaps and IDirectDrawPalette::GetCaps methods.
Size of the structure. This member must be initialized before the structure is used.
Driver-specific capabilities.
Indicates that the display hardware has 3D acceleration.
Indicates that DirectDraw will support only those source rectangles with the x-axis aligned to the dwAlignBoundaryDest boundaries of the surface.
Indicates that DirectDraw will support only those source rectangles with the x-axis aligned to the dwAlignBoundarySrc boundaries of the surface.
Indicates that DirectDraw will support only those source rectangles whose x-axis sizes, in bytes, are dwAlignSizeDest multiples.
Indicates that DirectDraw will support only those source rectangles whose x-axis sizes, in bytes, are dwAlignSizeSrc multiples.
Indicates that DirectDraw will create display memory surfaces that have a stride alignment equal to the dwAlignStrideAlign value.
Indicates that the display hardware supports an alpha channel during blit operations.
Indicates that the display hardware is bank-switched and is potentially very slow at random access to display memory.
Indicates that display hardware is capable of blit operations.
Indicates that display hardware is capable of color filling with a blitter.
Indicates that display hardware is capable of depth filling z-buffers with a blitter.
Indicates that display hardware is capable of color-space conversions during blit operations.
Indicates that display hardware is capable of asynchronous blit operations.
Indicates that display hardware is capable of stretching during blit operations.
Indicates that display hardware is capable of blitting to or from system memory.
Indicates that display hardware is capable of clipping with blitting.
Indicates that display hardware is capable of clipping while stretch blitting.
Supports some form of color key in either overlay or blit operations. More specific color key capability information can be found in the dwCKeyCaps member.
Indicates that the color key is hardware assisted.
Indicates that display hardware is shared with GDI.
Indicates that there is no hardware support.
Indicates that display hardware supports overlays.
Indicates that display hardware supports overlays but cannot clip them.
Indicates that overlay hardware is capable of color-space conversions during overlay operations.
Indicates that overlay hardware is capable of stretching.
Indicates that DirectDraw is capable of creating and supporting DirectDrawPalette objects for more surfaces than only the primary surface.
Indicates that DirectDraw is capable of updating a palette synchronized with the vertical refresh.
Indicates that display hardware is capable of returning the current scanline.
Indicates that display hardware has stereo vision capabilities.
Indicates that display hardware is capable of generating a vertical-blank interrupt.
Supports the use of z-buffers with blit operations.
Supports the use of the IDirectDrawSurface2::UpdateOverlayZOrder method as a z-value for overlays to control their layering.
More driver-specific capabilities.
Indicates that display hardware is certified.
Indicates that 2D operations such as IDirectDrawSurface2::Blt and IDirectDrawSurface2::Lock cannot be performed on any surfaces that Direct3D is using between calls to the IDirect3DDevice::BeginScene and IDirect3DDevice::EndScene methods.
Color-key capabilities.
Supports transparent blitting with a color key that identifies the replaceable bits of the destination surface for RGB colors.
Supports transparent blitting with a color space that identifies the replaceable bits of the destination surface for RGB colors.
Supports transparent blitting with a color space that identifies the replaceable bits of the destination surface for YUV colors.
Supports transparent blitting with a color key that identifies the replaceable bits of the destination surface for YUV colors.
Supports overlaying with color keying of the replaceable bits of the destination surface being overlaid for RGB colors.
DDCKEYCAPS_DESTOVERLAYCLRSPACE
Supports a color space as the color key for the destination of RGB colors.
DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV
Supports a color space as the color key for the destination of YUV colors.
DDCKEYCAPS_DESTOVERLAYONEACTIVE
Supports only one active destination color key value for visible overlay surfaces.
Supports overlaying using color keying of the replaceable bits of the destination surface being overlaid for YUV colors.
Indicates there are no bandwidth trade-offs for using the color key with an overlay.
Supports transparent blitting using the color key for the source with this surface for RGB colors.
Supports transparent blitting using a color space for the source with this surface for RGB colors.
Supports transparent blitting using a color space for the source with this surface for YUV colors.
Supports transparent blitting using the color key for the source with this surface for YUV colors.
Supports overlaying using the color key for the source with this overlay surface for RGB colors.
Supports overlaying using a color space as the source color key for the overlay surface for RGB colors.
DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV
Supports overlaying using a color space as the source color key for the overlay surface for YUV colors.
DDCKEYCAPS_SRCOVERLAYONEACTIVE
Supports only one active source color key value for visible overlay surfaces.
Supports overlaying using the color key for the source with this overlay surface for YUV colors.
Driver-specific stretching and effects capabilities.
Uses arithmetic operations, rather than pixel-doubling techniques, to stretch and shrink surfaces during a blit operation. Occurs along the y-axis (vertically).
Uses arithmetic operations, rather than pixel-doubling techniques, to stretch and shrink surfaces during a blit operation. Occurs along the y-axis (vertically), and works only for integer stretching (´1, ´2, and so on).
Supports mirroring left to right in a blit operation.
Supports mirroring top to bottom in a blit operation.
Supports arbitrary rotation in a blit operation.
Supports 90-degree rotations in a blit operation.
Supports arbitrary shrinking of a surface along the x-axis (horizontally). This flag is valid only for blit operations.
Supports integer shrinking (´1, ´2, and so on) of a surface along the x-axis (horizontally). This flag is valid only for blit operations.
Supports arbitrary shrinking of a surface along the y-axis (vertically). This flag is valid only for blit operations.
Supports integer shrinking (´1, ´2, and so on) of a surface along the y-axis (vertically). This flag is valid only for blit operations.
Supports arbitrary stretching of a surface along the x-axis (horizontally). This flag is valid only for blit operations.
Supports integer stretching (´1, ´2, and so on) of a surface along the x-axis (horizontally). This flag is valid only for blit operations.
Supports arbitrary stretching of a surface along the y-axis (vertically). This flag is valid only for blit operations.
Supports integer stretching (´1, ´2, and so on) of a surface along the y-axis (vertically). This flag is valid only for blit operations.
Uses arithmetic operations, rather than pixel-doubling techniques, to stretch and shrink surfaces during an overlay operation. Occurs along the y-axis (vertically).
DDFXCAPS_OVERLAYARITHSTRETCHYN
Uses arithmetic operations, rather than pixel-doubling techniques, to stretch and shrink surfaces during an overlay operation. Occurs along the y-axis (vertically), and works only for integer stretching (´1, ´2, and so on).
DDFXCAPS_OVERLAYMIRRORLEFTRIGHT
Supports mirroring of overlays around the vertical axis.
Supports mirroring of overlays across the horizontal axis.
Supports arbitrary shrinking of a surface along the x-axis (horizontally). This flag is valid only for DDSCAPS_OVERLAY surfaces. This flag indicates only the capabilities of a surface; it does not indicate that shrinking is available.
Supports integer shrinking (´1, ´2, and so on) of a surface along the x-axis (horizontally). This flag is valid only for DDSCAPS_OVERLAY surfaces. This flag indicates only the capabilities of a surface; it does not indicate that shrinking is available.
Supports arbitrary shrinking of a surface along the y-axis (vertically). This flag is valid only for DDSCAPS_OVERLAY surfaces. This flag indicates only the capabilities of a surface; it does not indicate that shrinking is available.
Supports integer shrinking (´1, ´2, and so on) of a surface along the y-axis (vertically). This flag is valid only for DDSCAPS_OVERLAY surfaces. This flag indicates only the capabilities of a surface; it does not indicate that shrinking is available.
Supports arbitrary stretching of a surface along the x-axis (horizontally). This flag is valid only for DDSCAPS_OVERLAY surfaces. This flag indicates only the capabilities of a surface; it does not indicate that stretching is available.
Supports integer stretching (´1, ´2, and so on) of a surface along the x-axis (horizontally). This flag is valid only for DDSCAPS_OVERLAY surfaces. This flag indicates only the capabilities of a surface; it does not indicate that stretching is available.
Supports arbitrary stretching of a surface along the y-axis (vertically). This flag is valid only for DDSCAPS_OVERLAY surfaces. This flag indicates only the capabilities of a surface; it does not indicate that stretching is available.
Supports integer stretching (´1, ´2, and so on) of a surface along the y-axis (vertically). This flag is valid only for DDSCAPS_OVERLAY surfaces. This flag indicates only the capabilities of a surface; it does not indicate that stretching is available.
Driver-specific alpha capabilities.
DDFXALPHACAPS_BLTALPHAEDGEBLEND
Supports alpha blending around the edge of a source color-keyed surface. Used for blit operations.
Supports alpha information in pixel format. The bit depth of alpha information in the pixel format can be 1, 2, 4, or 8. The alpha value becomes more opaque as the alpha value increases. Regardless of the depth of the alpha information, 0 is always the fully transparent value. Used for blit operations.
DDFXALPHACAPS_BLTALPHAPIXELSNEG
Supports alpha information in pixel format. The bit depth of alpha information in the pixel format can be 1, 2, 4, or 8. The alpha value becomes more transparent as the alpha value increases. Regardless of the depth of the alpha information, 0 is always the fully opaque value. This flag can be used only if DDCAPS_ALPHA is set. Used for blit operations.
DDFXALPHACAPS_BLTALPHASURFACES
Supports alpha-only surfaces. The bit depth of an alpha-only surface can be 1, 2, 4, or 8. The alpha value becomes more opaque as the alpha value increases. Regardless of the depth of the alpha information, 0 is always the fully transparent value. Used for blit operations.
DDFXALPHACAPS_BLTALPHASURFACESNEG
Indicates that the alpha channel becomes more transparent as the alpha value increases. The depth of the alpha channel data can be 1, 2, 4, or 8. Regardless of the depth of the alpha information, 0 is always the fully opaque value. This flag can be set only if DDFXCAPS_ALPHASURFACES has been set. Used for blit operations.
DDFXALPHACAPS_OVERLAYALPHAEDGEBLEND
Supports alpha blending around the edge of a source color-keyed surface. Used for overlays.
DDFXALPHACAPS_OVERLAYALPHAPIXELS
Supports alpha information in pixel format. The bit depth of alpha information in pixel format can be 1, 2, 4, or 8. The alpha value becomes more opaque as the alpha value increases. Regardless of the depth of the alpha information, 0 is always the fully transparent value. Used for overlays.
DDFXALPHACAPS_OVERLAYALPHAPIXELSNEG
Supports alpha information in pixel format. The bit depth of alpha information in pixel format can be 1, 2, 4, or 8. The alpha value becomes more transparent as the alpha value increases. Regardless of the depth of the alpha information, 0 is always the fully opaque value. This flag can be used only if DDFXCAPS_ALPHAPIXELS has been set. Used for overlays.
DDFXALPHACAPS_OVERLAYALPHASURFACES
Supports alpha-only surfaces. The bit depth of an alpha-only surface can be 1, 2, 4, or 8. The alpha value becomes more opaque as the alpha value increases. Regardless of the depth of the alpha information, 0 is always the fully transparent value. Used for overlays.
DDFXALPHACAPS_OVERLAYALPHASURFACESNEG
Indicates that the alpha channel becomes more transparent as the alpha value increases. The depth of the alpha channel data can be 1, 2, 4, or 8. Regardless of the depth of the alpha information, 0 is always the fully opaque value. This flag can be used only if DDFXCAPS_ALPHASURFACES has been set. Used for overlays.
Palette capabilities.
Indicates that the index is 1 bit. There are two entries in the color table.
Indicates that the index is 2 bits. There are four entries in the color table.
Indicates that the index is 4 bits. There are 16 entries in the color table.
Indicates that the index is 8 bits. There are 256 entries in the color table.
Specifies an index to an 8-bit color index. This field is valid only when used with the DDPCAPS_1BIT, DDPCAPS_2BIT, or DDPCAPS_4BIT capability and when the target surface is in 8 bits per pixel (bpp). Each color entry is 1 byte long and is an index to an 8-bpp palette on the destination surface.
Indicates that this palette can have all 256 entries defined.
Indicates that the palette is attached to the primary surface. Changing the palette has an immediate effect on the display unless the DDPCAPS_VSYNC capability is specified and supported.
Indicates that the palette is attached to the primary surface on the left. Changing the palette has an immediate effect on the display unless the DDPCAPS_VSYNC capability is specified and supported.
Indicates that the palette can be modified synchronously with the monitor's refresh rate.
Stereo vision capabilities.
Indicates that the stereo view is accomplished using Enigma encoding.
Indicates that the stereo view is accomplished using high-frequency flickering.
Indicates that the stereo view is accomplished when the viewer looks at the image through red and blue filters placed over the left and right eyes. All images must adapt their color spaces for this process.
Indicates that the stereo view is accomplished with split-screen technology.
DDBD_2, DDBD_4, or DDBD_8. (Indicates 2-, 4-, or 8-bits per pixel.)
DDBD_1, DDBD_2, DDBD_4, or DDBD_8. (Indicates 1-, 2-, 4-, or 8-bits per pixel.)
DDBD_1, DDBD_2, DDBD_4, or DDBD_8. (Indicates 1-, 2-, 4-, or 8-bits per pixel.)
DDBD_2, DDBD_4, or DDBD_8. (Indicates 2-, 4-, or 8-bits per pixel.)
DDBD_1, DDBD_2, DDBD_4, or DDBD_8. (Indicates 1-, 2-, 4-, or 8-bits per pixel.)
dwAlphaOverlaySurfaceBitDepths
DDBD_1, DDBD_2, DDBD_4, or DDBD_8. (Indicates 1-, 2-, 4-, or 8-bits per pixel.)
DDBD_8, DDBD_16, DDBD_24, or DDBD_32. (Indicates 8-, 16-, 24-, or 32-bits per pixel.)
Total amount of display memory.
Amount of free display memory.
Maximum number of visible overlays.
Current number of visible overlays.
Number of FourCC codes.
Source rectangle alignment.
Source rectangle byte size.
Destination rectangle alignment.
Destination rectangle byte size.
Stride alignment.
Raster operations supported.
ddsCaps
DDSCAPS structure with general capabilities.
dwMinOverlayStretch and dwMaxOverlayStretch
Minimum and maximum overlay stretch factors multiplied by 1000. For example, 1.3 = 1300.
dwMinLiveVideoStretch and dwMaxLiveVideoStretch
Minimum and maximum live video stretch factors multiplied by 1000. For example, 1.3 = 1300.
dwMinHwCodecStretch and dwMaxHwCodecStretch
Minimum and maximum hardware codec stretch factors multiplied by 1000. For example, 1.3 = 1300.
dwReserved1, dwReserved2, and dwReserved3
Reserved for future use.
Driver-specific capabilities for system-memory-to-display-memory blits.
Driver color-key capabilities for system-memory-to-display-memory blits.
Driver FX capabilities for system-memory-to-display-memory blits.
Raster operations supported for system-memory-to-display-memory blits.
Driver-specific capabilities for display-memory-to-system-memory blits.
Driver color-key capabilities for display-memory-to-system-memory blits.
Driver FX capabilities for display-memory-to-system-memory blits.
Supports raster operations for display-memory-to-system-memory blits.
Driver-specific capabilities for system-memory-to-system-memory blits.
Driver color-key capabilities for system-memory-to-system-memory blits.
Driver FX capabilities for system-memory-to-system-memory blits.
Raster operations supported for system-memory-to-system-memory blits.
dwReserved4, dwReserved5, and dwReserved6
Reserved for future use.