ScummVM API documentation
TsAGE::ScenePalette Class Reference
Inheritance diagram for TsAGE::ScenePalette:
TsAGE::SavedObject TsAGE::Serialisable

Public Member Functions

 ScenePalette (int paletteNum)
 
bool loadPalette (int paletteNum)
 
void loadPalette (const byte *pSrc, int start, int count)
 
void replace (const ScenePalette *src)
 
void refresh ()
 
void setPalette (int index, int count)
 
void getEntry (int index, uint *r, uint *g, uint *b)
 
void setEntry (int index, uint r, uint g, uint b)
 
uint8 indexOf (uint r, uint g, uint b, int threshold=0xffff, int start=0, int count=256)
 
void getPalette (int start=0, int count=256)
 
void signalListeners ()
 
void clearListeners ()
 
void fade (const byte *adjustData, bool fullAdjust, int percent)
 
PaletteRotationaddRotation (int start, int end, int rotationMode, int duration=0, Action *action=NULL)
 
PaletteFaderaddFader (const byte *arrBufferRGB, int palSize, int step, Action *action)
 
void synchronize (Serializer &s) override
 
Common::String getClassName () override
 
- Public Member Functions inherited from TsAGE::SavedObject
void synchronize (Serializer &s) override
 

Static Public Member Functions

static void changeBackground (const Rect &bounds, FadeMode fadeMode)
 
- Static Public Member Functions inherited from TsAGE::SavedObject
static SavedObjectcreateInstance (const Common::String &className)
 

Public Attributes

byte _palette [256 *3]
 
GfxColors _colors
 
SynchronizedList< PaletteModifier * > _listeners
 
uint8 _redColor
 
uint8 _greenColor
 
uint8 _blueColor
 
uint8 _aquaColor
 
uint8 _purpleColor
 
uint8 _limeColor
 

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