Logo Search packages:      
Sourcecode: scummvm version File versions

Graphics::PixelFormat Struct Reference

#include <colormasks.h>

List of all members.

Detailed Description

A pixel format description.

Like ColorMasks it includes the given values to create colors from RGB values and to retrieve RGB values from colors.

Unlike ColorMasks it is not dependend on knowing the exact pixel format on compile time.

A minor difference between ColorMasks and PixelFormat is that ColorMasks stores the bit count per channel in 'kFooBits', while PixelFormat stores the loss compared to 8 bits per channel in 'Loss'. It also doesn't contain mask values.

Definition at line 277 of file colormasks.h.

Public Attributes

byte aLoss
byte aShift
byte bLoss
byte bShift
byte bytesPerPixel
byte gLoss
byte gShift
byte rLoss
byte rShift

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index