Struct Dds.Header.DDPF

DirectDraw Pixel Format

struct DDPF ;

Fields

NameTypeDescription
a_bit_mask uintAlpha 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 uintBlue (or V) mask for reading color data. For instance, given the A8R8G8B8 format, the blue mask would be 0x000000ff.
flags uintSee Flags
four_cc char[4]Four-character codes for specifying compressed or custom formats. Possible values include: DXT1, DXT2, DXT3, DXT4, or DXT5.
g_bit_mask uintGreen (or U) mask for reading color data. For instance, given the A8R8G8B8 format, the green mask would be 0x0000ff00.
r_bit_mask uintRed (or lumiannce or Y) mask for reading color data. For instance, given the A8R8G8B8 format, the red mask would be 0x00ff0000.
rgb_bit_count uintNumber of bits in an RGB (possibly including alpha) format. Valid when dwFlags includes DDPF_RGB, DDPF_LUMINANCE, or DDPF_YUV.
size uintStructure size; set to 32 (bytes).

Methods

NameDescription
toString ()

Enums

NameDescription
Flags
FourCC