diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-06 17:03:05 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-06 17:07:43 +0100 |
commit | f7ce70d139effc5553c4ed2fa604724413b9d9b2 (patch) | |
tree | 5a05620ed6a65cf999b4ea0f3976b803b44504c8 /include/YAGE/sprite.hpp | |
parent | 932537776012c33dcdb6ae34dbb419f13717804d (diff) | |
download | YAGE-f7ce70d139effc5553c4ed2fa604724413b9d9b2.tar.gz YAGE-f7ce70d139effc5553c4ed2fa604724413b9d9b2.zip |
Adding clang format with my style based on google
Diffstat (limited to 'include/YAGE/sprite.hpp')
-rw-r--r-- | include/YAGE/sprite.hpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/YAGE/sprite.hpp b/include/YAGE/sprite.hpp index cddc0e26..969d0a67 100644 --- a/include/YAGE/sprite.hpp +++ b/include/YAGE/sprite.hpp @@ -15,11 +15,9 @@ #include <string> -namespace yage -{ +namespace yage { -class Sprite -{ +class Sprite { private: float x_; float y_; @@ -27,19 +25,21 @@ private: float height_; GLuint vbo_id_ = 0; Texture texture_; + public: Sprite(); - Sprite(const Sprite&)=delete; - Sprite(Sprite&&)=delete; + Sprite(const Sprite&) = delete; + Sprite(Sprite&&) = delete; ~Sprite(); - Sprite& operator=(const Sprite&)=delete; - Sprite& operator=(Sprite&&)=delete; + 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 init(float x, float y, float width, float height, + const std::string& texture_path); void draw(); }; - -} // yage + +} // yage #endif |