aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/sprite.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-08-01 23:47:35 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-08-01 23:47:35 +0100
commit31317175d72c62994b98a93e1b827633b4de9cb2 (patch)
tree91e9f1068da03a7a5419c44a927a30ff7d29235c /include/YAGE/sprite.hpp
parent67770ad6b1fcbc6730c140b0d3edd3fc9efbdc7b (diff)
downloadYAGE-31317175d72c62994b98a93e1b827633b4de9cb2.tar.gz
YAGE-31317175d72c62994b98a93e1b827633b4de9cb2.zip
Fixing constructors and destructors
Diffstat (limited to 'include/YAGE/sprite.hpp')
-rw-r--r--include/YAGE/sprite.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/YAGE/sprite.hpp b/include/YAGE/sprite.hpp
index 9e5aca8b..cddc0e26 100644
--- a/include/YAGE/sprite.hpp
+++ b/include/YAGE/sprite.hpp
@@ -29,8 +29,13 @@ private:
Texture texture_;
public:
Sprite();
+ Sprite(const Sprite&)=delete;
+ Sprite(Sprite&&)=delete;
~Sprite();
+ Sprite& operator=(const Sprite&)=delete;
+ Sprite& operator=(Sprite&&)=delete;
+
void init(float x, float y, float width, float height, const std::string &texture_path);
void draw();
};