ScummVM API documentation
MADS::PaletteUsage Class Reference

Classes

struct  UsageEntry
 
struct  UsageRange
 

Public Member Functions

 PaletteUsage (MADSEngine *vm)
 
void load (Common::Array< UsageEntry > *data)
 
bool empty () const
 
uint16 & operator[] (int index)
 
void setEmpty ()
 
void getKeyEntries (Common::Array< RGB6 > &palette)
 
void prioritize (Common::Array< RGB6 > &palette)
 
int process (Common::Array< RGB6 > &palette, uint flags)
 
void transform (Common::Array< RGB6 > &palette)
 
void updateUsage (Common::Array< int > &usageList, int sceneUsageIndex)
 
void resetPalFlags (int idx)
 
int checkRGB (const byte *rgb, int palStart, bool flag, int *palIndex)
 

Constructor & Destructor Documentation

◆ PaletteUsage()

MADS::PaletteUsage::PaletteUsage ( MADSEngine vm)

Constructor

Member Function Documentation

◆ empty()

bool MADS::PaletteUsage::empty ( ) const
inline

Returns whether the usage list is empty

◆ setEmpty()

void MADS::PaletteUsage::setEmpty ( )
inline

Assigns the class to an empty usage array

◆ getKeyEntries()

void MADS::PaletteUsage::getKeyEntries ( Common::Array< RGB6 > &  palette)

Gets key entries from the passed palette

Parameters
palette6-bit per entry read in palette

◆ prioritize()

void MADS::PaletteUsage::prioritize ( Common::Array< RGB6 > &  palette)

Prioritizes the palette index list based on the intensity of the RGB values of the palette entries that they refer to


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