Header.DDPF

DirectDraw Pixel Format

Members

Enums

Flags
enum Flags
FourCC
enum FourCC

Functions

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

a_bit_mask
uint32_t a_bit_mask;

Alpha mask for reading alpha data. dwFlags must include DDPF_ALPHAPIXELS or DDPF_ALPHA. For instance, given the A8R8G8B8 format, the alpha mask would be 0xff000000.

b_bit_mask
uint32_t b_bit_mask;

Blue (or V) mask for reading color data. For instance, given the A8R8G8B8 format, the blue mask would be 0x000000ff.

flags
uint32_t flags;

See Flags

four_cc
FourCC four_cc;

Four-character codes for specifying compressed or custom formats. Possible values include: DXT1, DXT2, DXT3, DXT4, or DXT5.

g_bit_mask
uint32_t g_bit_mask;

Green (or U) mask for reading color data. For instance, given the A8R8G8B8 format, the green mask would be 0x0000ff00.

r_bit_mask
uint32_t r_bit_mask;

Red (or lumiannce or Y) mask for reading color data. For instance, given the A8R8G8B8 format, the red mask would be 0x00ff0000.

rgb_bit_count
uint32_t rgb_bit_count;

Number of bits in an RGB (possibly including alpha) format. Valid when dwFlags includes DDPF_RGB, DDPF_LUMINANCE, or DDPF_YUV.

size
uint32_t size;

Structure size; set to 32 (bytes).

Meta