diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-01 23:47:35 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-01 23:47:35 +0100 |
commit | 31317175d72c62994b98a93e1b827633b4de9cb2 (patch) | |
tree | 91e9f1068da03a7a5419c44a927a30ff7d29235c /include/YAGE/sprite.hpp | |
parent | 67770ad6b1fcbc6730c140b0d3edd3fc9efbdc7b (diff) | |
download | YAGE-31317175d72c62994b98a93e1b827633b4de9cb2.tar.gz YAGE-31317175d72c62994b98a93e1b827633b4de9cb2.zip |
Fixing constructors and destructors
Diffstat (limited to 'include/YAGE/sprite.hpp')
-rw-r--r-- | include/YAGE/sprite.hpp | 5 |
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(); }; |