From 0b8a907d1f99b20cc789806ff70394a18cbea1d9 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 13 Aug 2017 17:38:57 +0100 Subject: Updating docs --- sprite_8hpp_source.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sprite_8hpp_source.html') diff --git a/sprite_8hpp_source.html b/sprite_8hpp_source.html index 98072d40..b27ebbec 100644 --- a/sprite_8hpp_source.html +++ b/sprite_8hpp_source.html @@ -68,11 +68,11 @@ $(function() {
sprite.hpp
-
1 /* ----------------------------------------------------------------------------
2  * sprite.hpp
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_HPP
10 #define SPRITE_HPP
11 
12 #include "texture.hpp"
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;
29  Texture texture_;
30 public:
31  Sprite();
32  ~Sprite();
33 
34  void init(float x, float y, float width, float height, const std::string &texture_path);
35  void draw();
36 };
37 
38 } // yage
39 
40 #endif
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * sprite.hpp
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_HPP
10 #define SPRITE_HPP
11 
12 #include "texture.hpp"
13 
14 #include <GL/glew.h>
15 
16 #include <string>
17 
18 namespace yage {
19 
20 class Sprite {
21 private:
22  float x_;
23  float y_;
24  float width_;
25  float height_;
26  GLuint vbo_id_ = 0;
27  Texture texture_;
28 
29 public:
30  Sprite();
31  Sprite(const Sprite&) = delete;
32  Sprite(Sprite&&) = delete;
33  ~Sprite();
34 
35  Sprite& operator=(const Sprite&) = delete;
36  Sprite& operator=(Sprite&&) = delete;
37 
38  void init(float x, float y, float width, float height,
39  const std::string& texture_path);
40  void draw();
41 };
42 
43 } // yage
44 
45 #endif
Definition: camera2d.hpp:17
-- cgit