📄 ddraw.h
字号:
* 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 * ****************************************************************************//* 0 is the only legal value *//**************************************************************************** * * DIRECTDRAWSURFACE SETPALETTE CONSTANTS * ****************************************************************************//**************************************************************************** * * DIRECTDRAW BITDEPTH CONSTANTS * * NOTE: These are only used to indicate supported bit depths. These * are flags only, they are not to be used as an actual bit depth. The * absolute numbers 1, 2, 4, 8, 16, 24 and 32 are used to indicate actual * bit depths in a surface or for changing the display mode. * ****************************************************************************//* * 1 bit per pixel. */#define DDBD_1 0x00004000l/* * 2 bits per pixel. */#define DDBD_2 0x00002000l/* * 4 bits per pixel. */#define DDBD_4 0x00001000l/* * 8 bits per pixel. */#define DDBD_8 0x00000800l/* * 16 bits per pixel. */#define DDBD_16 0x00000400l/* * 24 bits per pixel. */#define DDBD_24 0X00000200l/* * 32 bits per pixel. */#define DDBD_32 0x00000100l/**************************************************************************** * * DIRECTDRAWSURFACE SET/GET COLOR KEY FLAGS * ****************************************************************************//* * Set if the structure contains a color space. Not set if the structure * contains a
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -