aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/sprite.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-08-06 17:03:05 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-08-06 17:07:43 +0100
commitf7ce70d139effc5553c4ed2fa604724413b9d9b2 (patch)
tree5a05620ed6a65cf999b4ea0f3976b803b44504c8 /include/YAGE/sprite.hpp
parent932537776012c33dcdb6ae34dbb419f13717804d (diff)
downloadYAGE-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.hpp22
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