summaryrefslogtreecommitdiff
path: root/src/resources/atlasmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-15 01:47:55 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-15 01:47:55 +0300
commit60019d36cc08faa4d49f2ddb048f6a71cf87a683 (patch)
treee73f602ea61b8c935bc06a20194e954c1c382317 /src/resources/atlasmanager.h
parent23e39ef3eccab6b1297a00d3f8f199b54a7e9af9 (diff)
downloadplus-60019d36cc08faa4d49f2ddb048f6a71cf87a683.tar.gz
plus-60019d36cc08faa4d49f2ddb048f6a71cf87a683.tar.bz2
plus-60019d36cc08faa4d49f2ddb048f6a71cf87a683.tar.xz
plus-60019d36cc08faa4d49f2ddb048f6a71cf87a683.zip
improve atlasmanager.
Diffstat (limited to 'src/resources/atlasmanager.h')
-rw-r--r--src/resources/atlasmanager.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/resources/atlasmanager.h b/src/resources/atlasmanager.h
index 845e979d8..015a88e81 100644
--- a/src/resources/atlasmanager.h
+++ b/src/resources/atlasmanager.h
@@ -33,7 +33,7 @@ class Resource;
struct AtlasItem final
{
- explicit AtlasItem(Image *image0) :
+ explicit AtlasItem(Image *const image0) :
image(image0),
x(0),
y(0),
@@ -100,9 +100,9 @@ class AtlasManager final
const StringVect &files)
A_WARN_UNUSED;
- static void injectToResources(AtlasResource *resource);
+ static void injectToResources(AtlasResource *const resource);
- static void moveToDeleted(AtlasResource *resource);
+ static void moveToDeleted(AtlasResource *const resource);
private:
static void loadImages(const StringVect &files,
@@ -112,10 +112,11 @@ class AtlasManager final
std::vector<TextureAtlas*> &atlases,
std::vector<Image*> &images, int size);
- static SDL_Surface *createSDLAtlas(TextureAtlas *atlas) A_WARN_UNUSED;
+ static SDL_Surface *createSDLAtlas(TextureAtlas *const atlas)
+ A_WARN_UNUSED;
- static void convertAtlas(TextureAtlas *atlas);
+ static void convertAtlas(TextureAtlas *const atlas);
};
#endif