From 8ad8165816929301a87e90bbb32c3df6b69030ee Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 2 Sep 2017 12:28:11 +0100 Subject: Updating docs --- sprite_8h_source.html | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 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..29d345a1 --- /dev/null +++ b/sprite_8h_source.html @@ -0,0 +1,115 @@ + + + + + + + +YAGE: include/YAGE/sprite.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  v0.1.1 +
+
Yet Another Game Engine
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
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 
9 #ifndef SPRITE_H
10 #define SPRITE_H
11 
12 #include "texture.h"
13 
14 #include <GL/glew.h>
15 
16 #include <string>
17 
18 namespace yage
19 {
20 
21 class Sprite
22 {
23 private:
24  float x_;
25  float y_;
26  float width_;
27  float height_;
28  GLuint vbo_id_ = 0;
30 
31 public:
32  Sprite();
33  Sprite(const Sprite &) = delete;
34  Sprite(Sprite &&) = delete;
35  ~Sprite();
36 
37  Sprite &operator=(const Sprite &) = delete;
38  Sprite &operator=(Sprite &&) = delete;
39 
40  void init(float x, float y, float width, float height,
41  const std::string &texture_path);
42  void draw();
43 };
44 
45 } // namespace yage
46 
47 #endif
+ +
void draw()
Definition: sprite.cpp:73
+
Texture texture_
Definition: sprite.h:29
+
GLuint vbo_id_
Definition: sprite.h:28
+
float width_
Definition: sprite.h:26
+
void init(float x, float y, float width, float height, const std::string &texture_path)
Definition: sprite.cpp:27
+
Definition: texture.h:17
+
float x_
Definition: sprite.h:24
+
~Sprite()
Definition: sprite.cpp:20
+
float y_
Definition: sprite.h:25
+
Sprite & operator=(const Sprite &)=delete
+
Project namespace.
Definition: body.cpp:13
+
float height_
Definition: sprite.h:27
+
Definition: sprite.h:21
+
+
+ + + + -- cgit