From 91f7d856afa12e051d88c7afda2a0a6d4b5b27ef Mon Sep 17 00:00:00 2001 From: Scott Percival Date: Sat, 11 Jan 2020 23:30:40 +0800 Subject: DIRECTOR: Add V4 builtin palettes, support for loading the movie default --- engines/director/director.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'engines/director/director.h') 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 _director4Palettes; + Common::String _sharedCastFile; bool _draggingSprite; -- cgit v1.2.3