diff options
author | Paul Gilbert | 2014-02-22 11:13:35 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-02-22 11:13:35 -0500 |
commit | 82514b4a28904ead97552f6605cd3bde6924660b (patch) | |
tree | b447aceb998600d6bf9293a7bad08f7929648e76 /engines/mads/palette.h | |
parent | 54c4515232ec26397903373ed46e9492223ce2f2 (diff) | |
download | scummvm-rg350-82514b4a28904ead97552f6605cd3bde6924660b.tar.gz scummvm-rg350-82514b4a28904ead97552f6605cd3bde6924660b.tar.bz2 scummvm-rg350-82514b4a28904ead97552f6605cd3bde6924660b.zip |
MADS: Beginnings of cursor initialization
Diffstat (limited to 'engines/mads/palette.h')
-rw-r--r-- | engines/mads/palette.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/engines/mads/palette.h b/engines/mads/palette.h index 0ef8693a1f..53620d8fff 100644 --- a/engines/mads/palette.h +++ b/engines/mads/palette.h @@ -29,6 +29,13 @@ namespace MADS { class MADSEngine; +struct RGB4 { + byte r; + byte g; + byte b; + byte u; +}; + /** * Used to store a list of RGB values */ @@ -75,6 +82,11 @@ private: */ void fadeRange(byte *srcPal, byte *destPal, int startIndex, int endIndex, int numSteps, uint delayAmount); + + /** + * Initialises a stanadrd range of colours for the given palette + */ + void initRange(byte *palette); protected: MADSEngine *_vm; bool _colorsChanged; @@ -87,6 +99,7 @@ protected: void reset(); public: byte _mainPalette[PALETTE_SIZE]; + RGB4 _gamePalette[PALETTE_COUNT]; public: /** * Constructor @@ -171,6 +184,16 @@ public: */ static void setGradient(byte *palette, int start, int count, int rgbValue1, int rgbValue2); + /** + * Resets the game palette + */ + void resetGamePalette(int v1, int v2); + + /** + * Set the first four palette entries with preset values + */ + void setLowRange(); + // Color indexes uint8 BLACK; uint8 BLUE; |