summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-12 01:22:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-13 01:02:41 +0300
commitf42921c0597101b5d6f10afa68d0ffc6f6d1a66f (patch)
treeed11947780a97e2989cff78a2eb6537c7109d8d6 /src/resources/resourcemanager.h
parentc3b31b434fa392e22783d4a4b7fb007245c605db (diff)
downloadplus-f42921c0597101b5d6f10afa68d0ffc6f6d1a66f.tar.gz
plus-f42921c0597101b5d6f10afa68d0ffc6f6d1a66f.tar.bz2
plus-f42921c0597101b5d6f10afa68d0ffc6f6d1a66f.tar.xz
plus-f42921c0597101b5d6f10afa68d0ffc6f6d1a66f.zip
Add to resourcemanager method to load subimage.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r--src/resources/resourcemanager.h3
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.