📄 ddraw.h
字号:
* DDCAPS_ALPHA is set.
* For Blt.
*/
#define DDFXALPHACAPS_BLTALPHASURFACESNEG 0x00000010l
/*
* Supports alpha blending around the edge of a source color keyed surface.
* For Overlays.
*/
#define DDFXALPHACAPS_OVERLAYALPHAEDGEBLEND 0x00000020l
/*
* Supports alpha information in the 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. (0 is transparent.)
* For Overlays.
*/
#define DDFXALPHACAPS_OVERLAYALPHAPIXELS 0x00000040l
/*
* Supports alpha information in the 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. (0 is opaque.)
* This flag can only be set if DDCAPS_ALPHA is set.
* For Overlays.
*/
#define DDFXALPHACAPS_OVERLAYALPHAPIXELSNEG 0x00000080l
/*
* 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.
* (0 is transparent.)
* For Overlays.
*/
#define DDFXALPHACAPS_OVERLAYALPHASURFACES 0x00000100l
/*
* The depth of the alpha channel data can range can be 1,2,4, or 8.
* The NEG suffix indicates that this alpha channel becomes more transparent
* as the alpha value increases. (0 is opaque.) This flag can only be set if
* DDCAPS_ALPHA is set.
* For Overlays.
*/
#define DDFXALPHACAPS_OVERLAYALPHASURFACESNEG 0x00000200l
/****************************************************************************
*
* DIRECTDRAW FX CAPABILITY FLAGS
*
****************************************************************************/
/*
* Uses arithmetic operations to stretch and shrink surfaces during blt
* rather than pixel doubling techniques. Along the Y axis.
*/
#define DDFXCAPS_BLTARITHSTRETCHY 0x00000020l
/*
* Uses arithmetic operations to stretch during blt
* rather than pixel doubling techniques. Along the Y axis. Only
* works for x1, x2, etc.
*/
#define DDFXCAPS_BLTARITHSTRETCHYN 0x00000010l
/*
* Supports mirroring left to right in blt.
*/
#define DDFXCAPS_BLTMIRRORLEFTRIGHT 0x00000040l
/*
* Supports mirroring top to bottom in blt.
*/
#define DDFXCAPS_BLTMIRRORUPDOWN 0x00000080l
/*
* Supports arbitrary rotation for blts.
*/
#define DDFXCAPS_BLTROTATION 0x00000100l
/*
* Supports 90 degree rotations for blts.
*/
#define DDFXCAPS_BLTROTATION90 0x00000200l
/*
* DirectDraw supports arbitrary shrinking of a surface along the
* x axis (horizontal direction) for blts.
*/
#define DDFXCAPS_BLTSHRINKX 0x00000400l
/*
* DirectDraw supports integer shrinking (1x,2x,) of a surface
* along the x axis (horizontal direction) for blts.
*/
#define DDFXCAPS_BLTSHRINKXN 0x00000800l
/*
* DirectDraw supports arbitrary shrinking of a surface along the
* y axis (horizontal direction) for blts.
*/
#define DDFXCAPS_BLTSHRINKY 0x00001000l
/*
* DirectDraw supports integer shrinking (1x,2x,) of a surface
* along the y axis (vertical direction) for blts.
*/
#define DDFXCAPS_BLTSHRINKYN 0x00002000l
/*
* DirectDraw supports arbitrary stretching of a surface along the
* x axis (horizontal direction) for blts.
*/
#define DDFXCAPS_BLTSTRETCHX 0x00004000l
/*
* DirectDraw supports integer stretching (1x,2x,) of a surface
* along the x axis (horizontal direction) for blts.
*/
#define DDFXCAPS_BLTSTRETCHXN 0x00008000l
/*
* DirectDraw supports arbitrary stretching of a surface along the
* y axis (horizontal direction) for blts.
*/
#define DDFXCAPS_BLTSTRETCHY 0x00010000l
/*
* DirectDraw supports integer stretching (1x,2x,) of a surface
* along the y axis (vertical direction) for blts.
*/
#define DDFXCAPS_BLTSTRETCHYN 0x00020000l
/*
* Uses arithmetic operations to stretch and shrink surfaces during
* overlay rather than pixel doubling techniques. Along the Y axis
* for overlays.
*/
#define DDFXCAPS_OVERLAYARITHSTRETCHY 0x00040000l
/*
* Uses arithmetic operations to stretch surfaces during
* overlay rather than pixel doubling techniques. Along the Y axis
* for overlays. Only works for x1, x2, etc.
*/
#define DDFXCAPS_OVERLAYARITHSTRETCHYN 0x00000008l
/*
* DirectDraw supports arbitrary shrinking of a surface along the
* x axis (horizontal direction) for overlays.
*/
#define DDFXCAPS_OVERLAYSHRINKX 0x00080000l
/*
* DirectDraw supports integer shrinking (1x,2x,) of a surface
* along the x axis (horizontal direction) for overlays.
*/
#define DDFXCAPS_OVERLAYSHRINKXN 0x00100000l
/*
* DirectDraw supports arbitrary shrinking of a surface along the
* y axis (horizontal direction) for overlays.
*/
#define DDFXCAPS_OVERLAYSHRINKY 0x00200000l
/*
* DirectDraw supports integer shrinking (1x,2x,) of a surface
* along the y axis (vertical direction) for overlays.
*/
#define DDFXCAPS_OVERLAYSHRINKYN 0x00400000l
/*
* DirectDraw supports arbitrary stretching of a surface along the
* x axis (horizontal direction) for overlays.
*/
#define DDFXCAPS_OVERLAYSTRETCHX 0x00800000l
/*
* DirectDraw supports integer stretching (1x,2x,) of a surface
* along the x axis (horizontal direction) for overlays.
*/
#define DDFXCAPS_OVERLAYSTRETCHXN 0x01000000l
/*
* DirectDraw supports arbitrary stretching of a surface along the
* y axis (horizontal direction) for overlays.
*/
#define DDFXCAPS_OVERLAYSTRETCHY 0x02000000l
/*
* DirectDraw supports integer stretching (1x,2x,) of a surface
* along the y axis (vertical direction) for overlays.
*/
#define DDFXCAPS_OVERLAYSTRETCHYN 0x04000000l
/*
* DirectDraw supports mirroring of overlays across the vertical axis
*/
#define DDFXCAPS_OVERLAYMIRRORLEFTRIGHT 0x08000000l
/*
* DirectDraw supports mirroring of overlays across the horizontal axis
*/
#define DDFXCAPS_OVERLAYMIRRORUPDOWN 0x10000000l
/****************************************************************************
*
* DIRECTDRAW STEREO VIEW CAPABILITIES
*
****************************************************************************/
/*
* The stereo view is accomplished via enigma encoding.
*/
#define DDSVCAPS_ENIGMA 0x00000001l
/*
* The stereo view is accomplished via high frequency flickering.
*/
#define DDSVCAPS_FLICKER 0x00000002l
/*
* The stereo view is accomplished via red and blue filters applied
* to the left and right eyes. All images must adapt their colorspaces
* for this process.
*/
#define DDSVCAPS_REDBLUE 0x00000004l
/*
* The stereo view is accomplished with split screen technology.
*/
#define DDSVCAPS_SPLIT 0x00000008l
/****************************************************************************
*
* DIRECTDRAWPALETTE CAPABILITIES
*
****************************************************************************/
/*
* Index is 4 bits. There are sixteen color entries in the palette table.
*/
#define DDPCAPS_4BIT 0x00000001l
/*
* Index is onto a 8 bit color index. This field is only valid with the
* DDPCAPS_1BIT, DDPCAPS_2BIT or DDPCAPS_4BIT capability and the target
* surface is in 8bpp. Each color entry is one byte long and is an index
* into destination surface's 8bpp palette.
*/
#define DDPCAPS_8BITENTRIES 0x00000002l
/*
* Index is 8 bits. There are 256 color entries in the palette table.
*/
#define DDPCAPS_8BIT 0x00000004l
/*
* Indicates that this DIRECTDRAWPALETTE should use the palette color array
* passed into the lpDDColorArray parameter to initialize the DIRECTDRAWPALETTE
* object.
*/
#define DDPCAPS_INITIALIZE 0x00000008l
/*
* This palette is the one attached to the primary surface. Changing this
* table has immediate effect on the display unless DDPSETPAL_VSYNC is specified
* and supported.
*/
#define DDPCAPS_PRIMARYSURFACE 0x00000010l
/*
* This palette is the one attached to the primary surface left. Changing
* this table has immediate effect on the display for the left eye unless
* DDPSETPAL_VSYNC is specified and supported.
*/
#define DDPCAPS_PRIMARYSURFACELEFT 0x00000020l
/*
* This palette can have all 256 entries defined
*/
#define DDPCAPS_ALLOW256 0x00000040l
/*
* This palette can have modifications to it synced with the monitors
* refresh rate.
*/
#define DDPCAPS_VSYNC 0x00000080l
/*
* Index is 1 bit. There are two color entries in the palette table.
*/
#define DDPCAPS_1BIT 0x00000100l
/*
* Index is 2 bit. There are four color entries in the palette table.
*/
#define DDPCAPS_2BIT 0x00000200l
/****************************************************************************
*
* DIRECTDRAWPALETTE SETENTRY CONSTANTS
*
****************************************************************************/
/****************************************************************************
*
* DIRECTDRAWPALETTE GETENTRY CONSTANTS
*
******************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -