diff options
author | Paul Gilbert | 2014-08-10 11:47:15 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-10 11:47:15 -0400 |
commit | cce0c2ff97878b2b0b8a87e25395c3ef98bc584e (patch) | |
tree | 5a63d87c97114e834d90bb0d43adbea8cb0f2176 /engines/access/data.h | |
parent | 00901b200bffcbff69694ff6b54d55908fd74180 (diff) | |
download | scummvm-rg350-cce0c2ff97878b2b0b8a87e25395c3ef98bc584e.tar.gz scummvm-rg350-cce0c2ff97878b2b0b8a87e25395c3ef98bc584e.tar.bz2 scummvm-rg350-cce0c2ff97878b2b0b8a87e25395c3ef98bc584e.zip |
ACCESS: Adding sprite resources and screen saving
Diffstat (limited to 'engines/access/data.h')
-rw-r--r-- | engines/access/data.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/engines/access/data.h b/engines/access/data.h index cf8394baf9..bd1e1563fc 100644 --- a/engines/access/data.h +++ b/engines/access/data.h @@ -24,7 +24,9 @@ #define ACCESS_DATA_H #include "common/scummsys.h" +#include "common/array.h" #include "common/rect.h" +#include "graphics/surface.h" namespace Access { @@ -56,6 +58,27 @@ public: int _vidSTable1; }; +class SpriteFrame : public Graphics::Surface { +public: + uint16 _width, _height; + byte *_data; + uint32 _size; + + ~SpriteFrame(); +}; + +class SpriteResource { +public: + Common::Array<SpriteFrame *> _frames; +public: + SpriteResource(AccessEngine *vm, const byte *data, uint32 size); + ~SpriteResource(); + + int getCount() { return _frames.size(); } + + SpriteFrame *getFrame(int idx) { return _frames[idx]; } +}; + } // End of namespace Access #endif /* ACCESS_DATA_H */ |