ScummVM API documentation
Toltecs::Palette Class Reference

Classes

struct  PaletteFragment
 

Public Member Functions

 Palette (ToltecsEngine *vm)
 
void setFullPalette (byte *palette)
 
void getFullPalette (byte *palette)
 
void setDeltaPalette (byte *palette, byte mask, int8 deltaValue, int16 count, int16 startIndex)
 
void loadAddPalette (uint resIndex, byte startIndex)
 
void loadAddPaletteFrom (byte *source, byte startIndex, byte count)
 
void addFragment (uint resIndex, int16 id)
 
uint16 findFragment (int16 id)
 
void clearFragments ()
 
byte getMatchingColor (byte r, byte g, byte b)
 
void buildColorTransTable (byte limit, int8 deltaValue, byte mask)
 
byte getColorTransPixel (byte pixel) const
 
byte * getMainPalette ()
 
byte * getAnimPalette ()
 
void saveState (Common::WriteStream *out)
 
void loadState (Common::ReadStream *in)
 

Protected Types

typedef Common::Array< PaletteFragmentPaletteFragmentArray
 

Protected Attributes

ToltecsEngine_vm
 
byte _mainPalette [768]
 
byte _animPalette [768]
 
byte _colorTransTable [256]
 
PaletteFragmentArray _fragments
 
byte _fragmentIndex
 

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