From 48a21f6542e799e41735febbda76815e058954ac Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 28 Sep 2012 02:09:04 +0300 Subject: Override inc/dec ref to add/remove atlas images to resource cache. --- src/resources/atlasmanager.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/resources/atlasmanager.h') 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 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 &images); -- cgit v1.2.3-60-g2f50