summaryrefslogtreecommitdiff
path: root/src/resources/atlasmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-10 03:29:39 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-10 03:29:39 +0300
commit1d3118ec21f537695dc0e6a9608acd67396d0a51 (patch)
tree5cf9229b2d23f2a7a584b5fed9aaead306df6496 /src/resources/atlasmanager.h
parentdd996d01676d7dca3eec442b14c4966ba0bb0935 (diff)
downloadmv-1d3118ec21f537695dc0e6a9608acd67396d0a51.tar.gz
mv-1d3118ec21f537695dc0e6a9608acd67396d0a51.tar.bz2
mv-1d3118ec21f537695dc0e6a9608acd67396d0a51.tar.xz
mv-1d3118ec21f537695dc0e6a9608acd67396d0a51.zip
Delete copy constructor from other classes.
Diffstat (limited to 'src/resources/atlasmanager.h')
-rw-r--r--src/resources/atlasmanager.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/resources/atlasmanager.h b/src/resources/atlasmanager.h
index 1606fc4c9..4976185a7 100644
--- a/src/resources/atlasmanager.h
+++ b/src/resources/atlasmanager.h
@@ -42,6 +42,8 @@ struct AtlasItem
{
}
+ A_DELETE_COPY(AtlasItem);
+
Image *image;
std::string name;
int x;
@@ -60,6 +62,8 @@ struct TextureAtlas
{
}
+ A_DELETE_COPY(TextureAtlas);
+
std::string name;
Image *atlasImage;
SDL_Surface *surface;
@@ -71,6 +75,11 @@ struct TextureAtlas
class AtlasResource : public Resource
{
public:
+ AtlasResource()
+ { }
+
+ A_DELETE_COPY(AtlasResource);
+
~AtlasResource();
void incRef();
@@ -85,6 +94,8 @@ class AtlasManager
public:
AtlasManager();
+ A_DELETE_COPY(AtlasManager);
+
static AtlasResource *loadTextureAtlas(const std::string &name,
const StringVect &files);