Struct Dds.Header.DDPF
DirectDraw Pixel Format
Fields
Name | Type | Description |
a_bit_mask
|
uint | 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
|
uint | Blue (or V) mask for reading color data. For instance, given the A8R8G8B8 format, the blue mask would be 0x000000ff.
|
flags
|
uint | See 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
|
uint | Green (or U) mask for reading color data. For instance, given the A8R8G8B8 format, the green mask would be 0x0000ff00.
|
r_bit_mask
|
uint | 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
|
uint | Number of bits in an RGB (possibly including alpha) format. Valid when dwFlags includes DDPF_RGB, DDPF_LUMINANCE, or DDPF_YUV.
|
size
|
uint | Structure size; set to 32 (bytes).
|