diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-12 01:22:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-13 01:02:41 +0300 |
commit | f42921c0597101b5d6f10afa68d0ffc6f6d1a66f (patch) | |
tree | ed11947780a97e2989cff78a2eb6537c7109d8d6 /src/resources/resourcemanager.h | |
parent | c3b31b434fa392e22783d4a4b7fb007245c605db (diff) | |
download | manaplus-f42921c0597101b5d6f10afa68d0ffc6f6d1a66f.tar.gz manaplus-f42921c0597101b5d6f10afa68d0ffc6f6d1a66f.tar.bz2 manaplus-f42921c0597101b5d6f10afa68d0ffc6f6d1a66f.tar.xz manaplus-f42921c0597101b5d6f10afa68d0ffc6f6d1a66f.zip |
Add to resourcemanager method to load subimage.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r-- | src/resources/resourcemanager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h index b07b23431..b4892227e 100644 --- a/src/resources/resourcemanager.h +++ b/src/resources/resourcemanager.h @@ -38,6 +38,7 @@ class ImageSet; class Music; class Resource; class SoundEffect; +class SubImage; class SpriteDef; struct SDL_Surface; @@ -202,6 +203,8 @@ class ResourceManager */ ImageSet *getImageSet(const std::string &imagePath, int w, int h); + SubImage *getSubImage(Image *parent, int x, int y, int width, int height); + /** * Creates a sprite definition based on a given path and the supplied * variant. |