diff options
author | Travis Howell | 2005-04-07 10:43:51 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-07 10:43:51 +0000 |
commit | 6ced0d698a9298450c00e6141bb94049e2d7cdea (patch) | |
tree | 25e6173446f0e59c8449aa06f42fdf64b9480ed8 /scumm/intern.h | |
parent | 49bab70dedca35a924dfbbb7bbd16a664894dc71 (diff) | |
download | scummvm-rg350-6ced0d698a9298450c00e6141bb94049e2d7cdea.tar.gz scummvm-rg350-6ced0d698a9298450c00e6141bb94049e2d7cdea.tar.bz2 scummvm-rg350-6ced0d698a9298450c00e6141bb94049e2d7cdea.zip |
Add WIP on hePalette.
svn-id: r17431
Diffstat (limited to 'scumm/intern.h')
-rw-r--r-- | scumm/intern.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index addc66968a..9971510e4d 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -901,7 +901,6 @@ protected: int _heObject, _heObjectNum; int _hePaletteNum; - uint8 *_hePalettes; const OpcodeEntryV90he *_opcodesV90he; FloodStateParameters _floodStateParams; @@ -940,6 +939,7 @@ protected: void sortArray(int array, int dim2start, int dim2end, int dim1start, int dim1end, int sortOrder); uint8 *getHEPalette(int palSlot); + uint8 *getHEPaletteIndex(int palSlot); int getHEPaletteColor(int palSlot, int color); void setHEPaletteColor(int palSlot, uint8 color, uint8 r, uint8 g, uint8 b); void setHEPaletteFromPtr(int palSlot, const uint8 *palData); @@ -1089,7 +1089,19 @@ protected: void o90_kernelSetFunctions(); }; -class ScummEngine_v100he : public ScummEngine_v90he { +class ScummEngine_v99he : public ScummEngine_v90he { +public: + ScummEngine_v99he(GameDetector *detector, OSystem *syst, const ScummGameSettings &gs, uint8 md5sum[16]) : ScummEngine_v90he(detector, syst, gs, md5sum) {} + +protected: + virtual void copyPalColor(int dst, int src); + virtual void darkenPalette(int redScale, int greenScale, int blueScale, int startColor, int endColor); + virtual void setPaletteFromPtr(const byte *ptr, int numcolor = -1); + virtual void setPalColor(int index, int r, int g, int b); + virtual void updatePalette(); +}; + +class ScummEngine_v100he : public ScummEngine_v99he { protected: typedef void (ScummEngine_v100he::*OpcodeProcV100he)(); struct OpcodeEntryV100he { @@ -1102,7 +1114,7 @@ protected: const OpcodeEntryV100he *_opcodesV100he; public: - ScummEngine_v100he(GameDetector *detector, OSystem *syst, const ScummGameSettings &gs, uint8 md5sum[16]) : ScummEngine_v90he(detector, syst, gs, md5sum) {} + ScummEngine_v100he(GameDetector *detector, OSystem *syst, const ScummGameSettings &gs, uint8 md5sum[16]) : ScummEngine_v99he(detector, syst, gs, md5sum) {} protected: virtual void setupOpcodes(); |