aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/sprite.hpp
diff options
context:
space:
mode:
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