aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/supernova/graphics.h')
-rw-r--r--engines/supernova/graphics.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/engines/supernova/graphics.h b/engines/supernova/graphics.h
new file mode 100644
index 0000000000..2717350ce0
--- /dev/null
+++ b/engines/supernova/graphics.h
@@ -0,0 +1,24 @@
+#ifndef GRAPHICS_H
+#define GRAPHICS_H
+
+#include "common/stream.h"
+#include "image/image_decoder.h"
+#include "graphics/surface.h"
+
+class MSNImageDecoder : public Image::ImageDecoder
+{
+public:
+ MSNImageDecoder();
+ virtual ~MSNImageDecoder();
+
+ virtual void destroy();
+ virtual bool loadStream(Common::SeekableReadStream &stream);
+ virtual const Graphics::Surface *getSurface() const { return _surface; }
+ virtual const byte *getPalette() const { return _palette; }
+
+private:
+ const Graphics::Surface *_surface;
+ byte *_palette;
+};
+
+#endif