diff options
author | Eugene Sandulenko | 2005-03-02 20:02:59 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-03-02 20:02:59 +0000 |
commit | ee03994a782c904120a3e2f65770cfba149ab18b (patch) | |
tree | 20eedd58ebf055935bd57edac28fb01386fe1a4e /scumm/intern.h | |
parent | 3cd0ff763c258b1ef24546f263265558e1bf32ea (diff) | |
download | scummvm-rg350-ee03994a782c904120a3e2f65770cfba149ab18b.tar.gz scummvm-rg350-ee03994a782c904120a3e2f65770cfba149ab18b.tar.bz2 scummvm-rg350-ee03994a782c904120a3e2f65770cfba149ab18b.zip |
Commit o100_paletteOps WIP based on cyx's patch. Original patch just
tends to be unappliable anymore, so that's why I decided to commit it when
it required not so much work of manual patching.
I've checked validness of it against IDB but we still have main question open:
How to plug it in properly into our palette code?
svn-id: r16973
Diffstat (limited to 'scumm/intern.h')
-rw-r--r-- | scumm/intern.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index 9d05fb4470..186ed71dea 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -860,6 +860,7 @@ protected: int _heObject, _heObjectNum; int _hePaletteNum; + uint8 *_hePalettes; const OpcodeEntryV90he *_opcodesV90he; FloodStateParameters _floodStateParams; @@ -900,6 +901,16 @@ protected: uint8 getWizPixelColor(int restype, int resnum, int state, int x, int y, int flags); int computeWizHistogram(int resnum, int state, int x, int y, int w, int h); + uint8 *getHEPalette(int palSlot); + void setHEPaletteColor(int palSlot, uint8 color, uint8 r, uint8 g, uint8 b); + void setHEPaletteFromPtr(int palSlot, const uint8 *palData); + void setHEPaletteFromCostume(int palSlot, int resId); + void setHEPaletteFromImage(int palSlot, int resId, int state); + void setHEPaletteFromRoom(int palSlot, int resId, int state); + void restoreHEPalette(int palSlot); + void copyHEPalette(int dstPalSlot, int srcPalSlot); + void copyHEPaletteColor(int palSlot, uint8 dstColor, uint8 srcColor); + int findSpriteWithClassOf(int x, int y, int spriteGroupId, int d, int num, int *args); int spriteInfoGet_classFlags(int spriteId, int num); int spriteInfoGet_classFlagsAnd(int spriteId, int num, int *args); |