aboutsummaryrefslogtreecommitdiff
path: root/engines/director/director.h
diff options
context:
space:
mode:
authorScott Percival2020-01-11 23:30:40 +0800
committerScott Percival2020-01-11 23:30:40 +0800
commit91f7d856afa12e051d88c7afda2a0a6d4b5b27ef (patch)
treebc4bca884c08fbd2139a218dcfb04a0b6a68113f /engines/director/director.h
parent89e4242d3c2cf51bffd2bec26295299cf8498b67 (diff)
downloadscummvm-rg350-91f7d856afa12e051d88c7afda2a0a6d4b5b27ef.tar.gz
scummvm-rg350-91f7d856afa12e051d88c7afda2a0a6d4b5b27ef.tar.bz2
scummvm-rg350-91f7d856afa12e051d88c7afda2a0a6d4b5b27ef.zip
DIRECTOR: Add V4 builtin palettes, support for loading the movie default
Diffstat (limited to 'engines/director/director.h')
-rw-r--r--engines/director/director.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/director/director.h b/engines/director/director.h
index dfb221bc9d..0648d1c1d6 100644
--- a/engines/director/director.h
+++ b/engines/director/director.h
@@ -82,7 +82,11 @@ struct MovieReference {
MovieReference() { frameI = -1; }
};
-extern byte defaultPalette[768];
+struct PaletteV4 {
+ int id;
+ byte *palette;
+ int length;
+};
class DirectorEngine : public ::Engine {
public:
@@ -103,8 +107,10 @@ public:
Score *getCurrentScore() const { return _currentScore; }
Score *getSharedScore() const { return _sharedScore; }
Common::String getCurrentPath() const { return _currentPath; }
+ void setPalette(int id);
void setPalette(byte *palette, uint16 count);
bool hasFeature(EngineFeature f) const;
+ void loadPalettes();
const byte *getPalette() const { return _currentPalette; }
uint16 getPaletteColorCount() const { return _currentPaletteLength; }
void loadSharedCastsFrom(Common::String filename);
@@ -174,6 +180,8 @@ private:
Graphics::MacPatterns _director3Patterns;
Graphics::MacPatterns _director3QuickDrawPatterns;
+ Common::HashMap<int, PaletteV4 *> _director4Palettes;
+
Common::String _sharedCastFile;
bool _draggingSprite;