aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/resman.h
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2018-03-24 17:12:54 +0100
committerThierry Crozat2018-04-15 18:23:12 +0100
commitab208d107758837fbad1f75dd0de6edce05cd0bb (patch)
tree8d19f7ef997b4f87eb215df7417be179702029df /engines/supernova/resman.h
parent88a2026830186762898d0a47db3cf1c1047cd6d1 (diff)
downloadscummvm-rg350-ab208d107758837fbad1f75dd0de6edce05cd0bb.tar.gz
scummvm-rg350-ab208d107758837fbad1f75dd0de6edce05cd0bb.tar.bz2
scummvm-rg350-ab208d107758837fbad1f75dd0de6edce05cd0bb.zip
SUPERNOVA: Implements image buffering
Diffstat (limited to 'engines/supernova/resman.h')
-rw-r--r--engines/supernova/resman.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/supernova/resman.h b/engines/supernova/resman.h
index 075b1e671f..d1304bfe4c 100644
--- a/engines/supernova/resman.h
+++ b/engines/supernova/resman.h
@@ -23,8 +23,6 @@
#ifndef SUPERNOVA_RESOURCES_H
#define SUPERNOVA_RESOURCES_H
-#include "common/ptr.h"
-
#include "supernova/sound.h"
namespace Audio {
@@ -33,18 +31,25 @@ class SeekableAudioStream;
namespace Supernova {
+class MSNImage;
+
class ResourceManager {
public:
+ static const int kNumImageFiles = 44;
+
+public:
ResourceManager(SupernovaEngine *vm);
~ResourceManager();
Audio::SeekableAudioStream *getSoundStream(AudioIndex index);
- Audio::AudioStream *getSoundStream(MusicIndex index);
+ Audio::AudioStream *getSoundStream(MusicIndex index) const;
+ MSNImage *getImage(int filenumber) const;
private:
void initSoundFiles();
void initGraphics();
void initCursorGraphics();
+ void initImages();
private:
SupernovaEngine *_vm;
@@ -52,6 +57,7 @@ private:
Audio::AudioStream *_musicIntro;
Audio::AudioStream *_musicOutro;
int _audioRate;
+ MSNImage *_images[kNumImageFiles];
byte _cursorNormal[256];
byte _cursorWait[256];
};