diff options
author | Paul Gilbert | 2014-12-25 20:56:35 +1100 |
---|---|---|
committer | Paul Gilbert | 2014-12-25 20:56:35 +1100 |
commit | 4e05f36abdbeb0a0215c0ad5e939bce9a65cf69a (patch) | |
tree | c99929b08bf99a9314cf8d339a0608d75afef2d4 /engines/xeen/resources.cpp | |
parent | a933e661a93a0bf3466ba2dabc2f8d36e3587c5d (diff) | |
download | scummvm-rg350-4e05f36abdbeb0a0215c0ad5e939bce9a65cf69a.tar.gz scummvm-rg350-4e05f36abdbeb0a0215c0ad5e939bce9a65cf69a.tar.bz2 scummvm-rg350-4e05f36abdbeb0a0215c0ad5e939bce9a65cf69a.zip |
XEEN: Add XSurface base class and Screen dirty rect code
Diffstat (limited to 'engines/xeen/resources.cpp')
-rw-r--r-- | engines/xeen/resources.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/xeen/resources.cpp b/engines/xeen/resources.cpp index f99be12c3d..e9c31e337f 100644 --- a/engines/xeen/resources.cpp +++ b/engines/xeen/resources.cpp @@ -206,9 +206,27 @@ void Resources::init(XeenEngine *vm) { /*------------------------------------------------------------------------*/ +/** + * Opens the given file, throwing an error if it can't be opened + */ void File::openFile(const Common::String &filename) { if (!Common::File::open(filename)) error("Could not open file - %s", filename.c_str()); } +/*------------------------------------------------------------------------*/ + +SpriteResource::SpriteResource(const Common::String &filename) { + +} + +int SpriteResource::size() const { + return _frames.size(); +} + +const XSurface &SpriteResource::getFrame(int frame) { + return _frames[frame]; +} + + } // End of namespace Xeen |