diff options
author | Matthew Hoops | 2011-03-09 13:54:15 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-03-09 13:59:30 -0500 |
commit | 8743838f47efb8b80955e64aca027c954dbf8b51 (patch) | |
tree | 013e191ac4a68e31986a72b912dc14befb5a9b9c /engines/mohawk/graphics.h | |
parent | cd816b24d786935b30fab1ead5cc82f13a11385e (diff) | |
download | scummvm-rg350-8743838f47efb8b80955e64aca027c954dbf8b51.tar.gz scummvm-rg350-8743838f47efb8b80955e64aca027c954dbf8b51.tar.bz2 scummvm-rg350-8743838f47efb8b80955e64aca027c954dbf8b51.zip |
MOHAWK: Add initial support for the Riven credits sequence
The credits start too early for a few of the end game sequences, but otherwise works well (minus missing fade support, but that is throughout the game anyway).
Diffstat (limited to 'engines/mohawk/graphics.h')
-rw-r--r-- | engines/mohawk/graphics.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/mohawk/graphics.h b/engines/mohawk/graphics.h index 89189d442a..fbac2f2ea1 100644 --- a/engines/mohawk/graphics.h +++ b/engines/mohawk/graphics.h @@ -110,6 +110,7 @@ protected: virtual Common::Array<MohawkSurface *> decodeImages(uint16 id); virtual MohawkEngine *getVM() = 0; + void addImageToCache(uint16 id, MohawkSurface *surface); private: // An image cache that stores images until clearCache() is called @@ -195,11 +196,17 @@ public: // Transitions void scheduleTransition(uint16 id, Common::Rect rect = Common::Rect(0, 0, 608, 392)); void runScheduledTransition(); + void fadeToBlack(); // Inventory void showInventory(); void hideInventory(); + // Credits + void beginCredits(); + void updateCredits(); + uint getCurCreditsImage() { return _creditsImage; } + protected: MohawkSurface *decodeImage(uint16 id); MohawkEngine *getVM() { return (MohawkEngine *)_vm; } @@ -224,6 +231,10 @@ private: Graphics::Surface *_mainScreen; bool _dirtyScreen; Graphics::PixelFormat _pixelFormat; + void clearMainScreen(); + + // Credits + uint _creditsImage, _creditsPos; }; class LBGraphics : public GraphicsManager { |