ScummVM API documentation
Ultima::Ultima8::Palette Class Reference
Inheritance diagram for Ultima::Ultima8::Palette:
Graphics::Palette

Public Member Functions

void load (Common::ReadStream &rs, Common::ReadStream &xformrs)
 
void load (Common::ReadStream &rs)
 
void transformRGB (int &r, int &g, int &b) const
 
- Public Member Functions inherited from Graphics::Palette
 Palette (uint size)
 Construct a new Palette object. More...
 
 Palette (const byte *data, uint size)
 Construct a new Palette object. More...
 
 Palette (const Palette &p)
 
Paletteoperator= (const Palette &rhs)
 
bool operator== (const Palette &rhs) const
 
bool operator!= (const Palette &rhs) const
 
bool equals (const Palette &p) const
 
bool contains (const Palette &p) const
 
const byte * data () const
 
uint size () const
 
void set (uint entry, byte r, byte g, byte b)
 
void get (uint entry, byte &r, byte &g, byte &b) const
 
uint find (byte r, byte g, byte b) const
 
byte findBestColor (byte r, byte g, byte b, bool useNaiveAlg=false) const
 
void clear ()
 
void set (const byte *colors, uint start, uint num)
 
void set (const Palette &p, uint start, uint num)
 
void grab (byte *colors, uint start, uint num) const
 
void grab (Palette &p, uint start, uint num) const
 

Public Attributes

uint32 _native_untransformed [256]
 
uint32 _native [256]
 
uint32 _xform_untransformed [256]
 
uint32 _xform [256]
 
int16 _matrix [12]
 
PalTransforms _transform
 

Additional Inherited Members

- Static Public Member Functions inherited from Graphics::Palette
static Palette createEGAPalette ()
 
- Static Public Attributes inherited from Graphics::Palette
static const uint16 npos = 0xFFFF
 

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