Platform SDK: DirectX

CONST_DDPCAPSFLAGS

The CONST_DDPCAPSFLAGS enumeration is used by the flags parameter of DirectDraw7.CreatePalette as a return value for DirectDrawPalette.GetCaps and by the lPalCaps member of DDCAPS to describe the capabilities of the palette.

Enum CONST_DDPCAPSFLAGS
    DDPCAPS_1BIT             =  256
    DDPCAPS_2BIT             =  512
    DDPCAPS_4BIT             =    1
    DDPCAPS_8BIT             =    4
    DDPCAPS_8BITENTRIES      =    2
    DDPCAPS_ALLOW256         =   64
    DDPCAPS_ALPHA            = 1024
    DDPCAPS_INITIALIZE       =    8
    DDPCAPS_PRIMARYSURFACE   =   16
    DDPCAPS_PRIMARYSURFACELEFT = 32
    DDPCAPS_VSYNC            =  128
End Enum
DDPCAPS_1BIT
The index is 1 bit. There are two entries in the color table.
DDPCAPS_2BIT
The index is 2 bits. There are four entries in the color table.
DDPCAPS_4BIT
The index is 4 bits. There are 16 entries in the color table.
DDPCAPS_8BIT
The index is 8 bits. There are 256 entries in the color table_dx_color_table_glos.
DDPCAPS_8BITENTRIES
The index refers to an 8-bit color index. This flag is valid only when used with the DDPCAPS_1BIT, DDPCAPS_2BIT, or DDPCAPS_4BIT flag and when the target surface is 8 bpp. Each color entry is 1 byte long and is an index to a destination surface's 8-bpp palette.
DDPCAPS_ALLOW256
This palette can have all 256 entries defined.
DDPCAPS_ALPHA
The flags member of the associated PALETTEENTRY type is to be interpreted as a single 8-bit alpha value. A palette created with this flag can be attached only to a texture (a surface created with the DDSCAPS_TEXTURE capability flag).
DDPCAPS_INITIALIZE
Obsolete and ignored by DirectDraw.
DDPCAPS_PRIMARYSURFACE
This palette is attached to the primary surface. Changing this palette's color table immediately affects the display unless DDPSETPAL_VSYNC is specified and supported.
DDPCAPS_PRIMARYSURFACELEFT
This palette is the one attached to the left-eye primary surface. Changing this palette's color table immediately affects the left-eye display unless DDPSETPAL_VSYNC is specified and supported.
DDPCAPS_VSYNC
This palette can have modifications to it synchronized with the monitors refresh rate.