From ad0a4f4aedd903c2c469b2b4fdd14db1c7681e1f Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 3 Sep 2017 12:58:19 +0100 Subject: Updating docs --- sprite_8h_source.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sprite_8h_source.html') diff --git a/sprite_8h_source.html b/sprite_8h_source.html index ee4443c1..632f94eb 100644 --- a/sprite_8h_source.html +++ b/sprite_8h_source.html @@ -85,16 +85,16 @@ $(document).ready(function(){initNavTree('sprite_8h_source.html','');});
sprite.h
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * sprite.h
3  *
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5  * See file LICENSE for more details
6  * ----------------------------------------------------------------------------
7  */
8 
14 #ifndef SPRITE_H
15 #define SPRITE_H
16 
17 #include "texture.h"
18 
19 #include <GL/glew.h>
20 
21 #include <string>
22 
23 namespace yage
24 {
25 
26 class Sprite
27 {
28 private:
29  float x_;
30  float y_;
31  float width_;
32  float height_;
33  GLuint vbo_id_ = 0;
35 
36 public:
37  Sprite();
38  Sprite(const Sprite &) = delete;
39  Sprite(Sprite &&) = delete;
40  ~Sprite();
41 
42  Sprite &operator=(const Sprite &) = delete;
43  Sprite &operator=(Sprite &&) = delete;
44 
45  void init(float x, float y, float width, float height,
46  const std::string &texture_path);
47  void draw();
48 };
49 
50 } // namespace yage
51 
52 #endif
+Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * sprite.h
3  *
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5  * See file LICENSE for more details
6  * ----------------------------------------------------------------------------
7  */
8 
12 #ifndef SPRITE_H
13 #define SPRITE_H
14 
15 #include "texture.h"
16 
17 #include <GL/glew.h>
18 
19 #include <string>
20 
21 namespace yage
22 {
23 
26 class Sprite
27 {
28 private:
29  float x_;
30  float y_;
31  float width_;
32  float height_;
33  GLuint vbo_id_ = 0;
35 
36 public:
37  Sprite();
38  Sprite(const Sprite &) = delete;
39  Sprite(Sprite &&) = delete;
40  ~Sprite();
41 
42  Sprite &operator=(const Sprite &) = delete;
43  Sprite &operator=(Sprite &&) = delete;
44 
45  void init(float x, float y, float width, float height,
46  const std::string &texture_path);
47  void draw();
48 };
49 
50 } // namespace yage
51 
52 #endif
-
void draw()
Definition: sprite.cpp:78
+
void draw()
Definition: sprite.cpp:76
Texture texture_
Definition: sprite.h:34
GLuint vbo_id_
Definition: sprite.h:33
float width_
Definition: sprite.h:31
-
void init(float x, float y, float width, float height, const std::string &texture_path)
Definition: sprite.cpp:32
+
void init(float x, float y, float width, float height, const std::string &texture_path)
Definition: sprite.cpp:30
Definition: texture.h:17
float x_
Definition: sprite.h:29
-
~Sprite()
Definition: sprite.cpp:25
+
~Sprite()
Definition: sprite.cpp:23
float y_
Definition: sprite.h:30
Sprite & operator=(const Sprite &)=delete
Project namespace.
Definition: body.cpp:13
@@ -106,7 +106,7 @@ $(document).ready(function(){initNavTree('sprite_8h_source.html','');});