diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-28 02:09:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-30 04:19:00 +0300 |
commit | 48a21f6542e799e41735febbda76815e058954ac (patch) | |
tree | d42804ec7de20a3d0c1f417164c547328279ce10 /src/resources/atlasmanager.h | |
parent | 2364404717e7e7b93daf00f22ee17f72db6e5b27 (diff) | |
download | mv-48a21f6542e799e41735febbda76815e058954ac.tar.gz mv-48a21f6542e799e41735febbda76815e058954ac.tar.bz2 mv-48a21f6542e799e41735febbda76815e058954ac.tar.xz mv-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.h | 6 |
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); |