summaryrefslogtreecommitdiff
path: root/src/resources/atlasmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-28 02:09:04 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-30 04:19:00 +0300
commit48a21f6542e799e41735febbda76815e058954ac (patch)
treed42804ec7de20a3d0c1f417164c547328279ce10 /src/resources/atlasmanager.h
parent2364404717e7e7b93daf00f22ee17f72db6e5b27 (diff)
downloadmanaplus-48a21f6542e799e41735febbda76815e058954ac.tar.gz
manaplus-48a21f6542e799e41735febbda76815e058954ac.tar.bz2
manaplus-48a21f6542e799e41735febbda76815e058954ac.tar.xz
manaplus-48a21f6542e799e41735febbda76815e058954ac.zip
Override inc/dec ref to add/remove atlas images to resource cache.
Diffstat (limited to 'src/resources/atlasmanager.h')
-rw-r--r--src/resources/atlasmanager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/atlasmanager.h b/src/resources/atlasmanager.h
index 41aae86e5..1606fc4c9 100644
--- a/src/resources/atlasmanager.h
+++ b/src/resources/atlasmanager.h
@@ -73,6 +73,10 @@ class AtlasResource : public Resource
public:
~AtlasResource();
+ void incRef();
+
+ void decRef();
+
std::vector<TextureAtlas*> atlases;
};
@@ -86,6 +90,8 @@ class AtlasManager
static void injectToResources(AtlasResource *resource);
+ static void moveToDeleted(AtlasResource *resource);
+
private:
static void loadImages(const StringVect &files,
std::vector<Image*> &images);