From 72b41042223bfe31d70df8a71a50e4ba5d4f674d Mon Sep 17 00:00:00 2001 From: TravisBot <> Date: Sat, 23 Dec 2017 01:02:37 +0000 Subject: [Travis] Rebuilding documentation --- sprite_8h_source.html | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 sprite_8h_source.html (limited to 'sprite_8h_source.html') diff --git a/sprite_8h_source.html b/sprite_8h_source.html new file mode 100644 index 00000000..9b21cc65 --- /dev/null +++ b/sprite_8h_source.html @@ -0,0 +1,177 @@ + + + + + + +YAGE: yage/core/sprite.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  v0.1.3.0 +
+
Yet Another Game Engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ +
+ All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
+ + +
+ +
+ +
+
+
sprite.h
+
+
+Go to the documentation of this file.
1 
+
9 #ifndef SPRITE_H
+
10 #define SPRITE_H
+
11 
+
12 #include "texture.h"
+
13 
+
14 #include <glad/glad.h>
+
15 
+
16 #include <string>
+
17 
+
18 namespace yage
+
19 {
+
20 
+
23 class Sprite
+
24 {
+
25 private:
+
26  float x_;
+
27  float y_;
+
28  float width_;
+
29  float height_;
+
30  GLuint vbo_id_ = 0;
+ +
32 
+
33 public:
+
34  Sprite() = default;
+
35  Sprite(const Sprite &) = delete;
+
36  Sprite(Sprite &&) = delete;
+
37  ~Sprite();
+
38 
+
39  Sprite &operator=(const Sprite &) = delete;
+
40  Sprite &operator=(Sprite &&) = delete;
+
41 
+
42  void init(float x, float y, float width, float height,
+
43  const std::string &texture_path);
+
44  void draw();
+
45 };
+
46 
+
47 } // namespace yage
+
48 
+
49 #endif
+
Sprite()=default
+ +
void draw()
Definition: sprite.cpp:71
+
Texture texture_
Definition: sprite.h:31
+
GLuint vbo_id_
Definition: sprite.h:30
+
float width_
Definition: sprite.h:28
+
void init(float x, float y, float width, float height, const std::string &texture_path)
Definition: sprite.cpp:25
+
Definition: texture.h:17
+
float x_
Definition: sprite.h:26
+
~Sprite()
Definition: sprite.cpp:18
+
float y_
Definition: sprite.h:27
+
Sprite & operator=(const Sprite &)=delete
+
float height_
Definition: sprite.h:29
+
Definition: sprite.h:23
+
+
+ + + + -- cgit