diff options
Diffstat (limited to 'engines/mads/palette.h')
-rw-r--r-- | engines/mads/palette.h | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/engines/mads/palette.h b/engines/mads/palette.h index a00e1789f4..d85e25b8b6 100644 --- a/engines/mads/palette.h +++ b/engines/mads/palette.h @@ -50,42 +50,6 @@ struct RGB6 { void load(Common::SeekableReadStream *f); }; -/** - * Used to store a list of RGB values - */ -class RGBList { -private: - int _size; - byte *_data; - byte *_palIndexes; - bool _freeData; -public: - /** - * Constructor - */ - RGBList(int numEntries = 256, byte *srcData = NULL, bool freeData = true); - - /** - * Destructor - */ - ~RGBList(); - - /** - * Returns the raw data containing the RGB values as 3 bytes per entry - */ - byte *data() { return _data; } - - /** - * Returns the list of palette indexes each RGB tuple maps to in the current palette - */ - byte *palIndexes() { return _palIndexes; } - - /** - * Returns the size of the palette - */ - int size() const { return _size; } -}; - class PaletteUsage { private: Common::Array<int> _data; @@ -180,33 +144,6 @@ public: */ uint8 palIndexFromRgb(byte r, byte g, byte b, byte *paletteData = nullptr); - // Methods used for reference counting color usage - /** - * Resets the usage counts for the palette - */ - void resetColorCounts(); - - /** - * Blocks out a range of the palette from being used - */ - void blockRange(int startIndex, int size); - - /** - * Adds the data of an RGBList into the current palette and increment usage counts. - */ - void addRange(RGBList *list); - - /** - * Delets a range from the current palette, dercementing the accompanying usage counts. - */ - void deleteRange(RGBList *list); - - /** - * Deletes all loaded RGB lists are their usage references. - */ - void deleteAllRanges(); - - // Virtual method table /** * Decode a palette and return it, without affecting the Palette itself */ @@ -248,24 +185,6 @@ public: void close() { warning("TODO: Palette::close"); } - - // Color indexes - uint8 BLACK; - uint8 BLUE; - uint8 GREEN; - uint8 CYAN; - uint8 RED; - uint8 VIOLET; - uint8 BROWN; - uint8 LIGHT_GRAY; - uint8 DARK_GRAY; - uint8 LIGHT_BLUE; - uint8 LIGHT_GREEN; - uint8 LIGHT_CYAN; - uint8 LIGHT_RED; - uint8 PINK; - uint8 YELLOW; - uint8 WHITE; }; } // End of namespace MADS |