From 3d96965ecd28b9037a83c4b22f65fcf502dce336 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 29 Jul 2017 10:00:20 +0100 Subject: Updating docs --- annotated.html | 35 +---- body_8hpp_source.html | 8 +- camera2d_8hpp_source.html | 7 +- classes.html | 34 ++--- classyage_1_1Body-members.html | 94 ------------- classyage_1_1Body.html | 148 -------------------- classyage_1_1Body.png | Bin 1112 -> 0 bytes classyage_1_1Camera2D-members.html | 85 ------------ classyage_1_1Camera2D.html | 98 ------------- classyage_1_1Collider-members.html | 87 ------------ classyage_1_1Collider.html | 116 ---------------- classyage_1_1Collider.png | Bin 642 -> 0 bytes classyage_1_1CollisionBody-members.html | 96 ------------- classyage_1_1CollisionBody.html | 136 ------------------ classyage_1_1CollisionBody.png | Bin 560 -> 0 bytes classyage_1_1GlslProgram-members.html | 89 ------------ classyage_1_1GlslProgram.html | 107 -------------- classyage_1_1Glyph-members.html | 88 ------------ classyage_1_1Glyph.html | 110 --------------- classyage_1_1ImageLoader-members.html | 82 ----------- classyage_1_1ImageLoader.html | 92 ------------ classyage_1_1InputManager-members.html | 84 ----------- classyage_1_1InputManager.html | 98 ------------- classyage_1_1IoManager-members.html | 82 ----------- classyage_1_1IoManager.html | 92 ------------ classyage_1_1Matrix-members.html | 23 +-- classyage_1_1Matrix.html | 100 +++++++------ classyage_1_1ParticleBody-members.html | 95 ------------- classyage_1_1ParticleBody.html | 145 ------------------- classyage_1_1ParticleBody.png | Bin 801 -> 0 bytes classyage_1_1RectangleCollider-members.html | 88 ------------ classyage_1_1RectangleCollider.html | 121 ---------------- classyage_1_1RectangleCollider.png | Bin 645 -> 0 bytes classyage_1_1RenderBatch-members.html | 85 ------------ classyage_1_1RenderBatch.html | 101 -------------- classyage_1_1ResourceManager-members.html | 82 ----------- classyage_1_1ResourceManager.html | 92 ------------ classyage_1_1RigidBody-members.html | 96 ------------- classyage_1_1RigidBody.html | 149 -------------------- classyage_1_1RigidBody.png | Bin 796 -> 0 bytes classyage_1_1Sprite-members.html | 85 ------------ classyage_1_1Sprite.html | 95 ------------- classyage_1_1SpriteBatch-members.html | 89 ------------ classyage_1_1SpriteBatch.html | 111 --------------- classyage_1_1TextureCache-members.html | 84 ----------- classyage_1_1TextureCache.html | 92 ------------ classyage_1_1Vector-members.html | 97 ------------- classyage_1_1Vector.html | 150 -------------------- classyage_1_1Vector.png | Bin 799 -> 0 bytes classyage_1_1Vector2-members.html | 31 +---- classyage_1_1Vector2.html | 105 +++----------- classyage_1_1Vector2.png | Bin 1115 -> 0 bytes classyage_1_1Window-members.html | 86 ------------ classyage_1_1Window.html | 98 ------------- classyage_1_1detail_1_1Row-members.html | 84 ----------- classyage_1_1detail_1_1Row.html | 97 ------------- collider_8hpp_source.html | 6 +- collisionbody_8hpp_source.html | 7 +- dir_5ac3a90c14a160db9539610948ce4998.html | 3 +- dir_68267d1309a1af8e8297ef4c3efbcdba.html | 3 +- dir_b233a2caca2b45d5ef987dbbf49782d0.html | 3 +- dir_d44c64559bbebec7f509842c48db8b23.html | 3 +- dir_f562165b51c585c003877be645f219b5.html | 3 +- files.html | 3 +- functions.html | 88 ++++++++++++ functions_func.html | 85 ++++++++++++ functions_vars.html | 76 ++++++++++ glslprogram_8hpp_source.html | 6 +- hierarchy.html | 42 ++---- imageloader_8hpp_source.html | 7 +- index.html | 3 +- inputmanager_8hpp_source.html | 6 +- iomanager_8hpp_source.html | 6 +- math_8hpp_source.html | 3 +- matrix_8hpp.html | 81 +++-------- matrix_8hpp_source.html | 17 ++- md_README.html | 3 +- md_docs_README.html | 3 +- menudata.js | 11 +- namespacedetail.html | 81 ----------- namespacemembers.html | 82 +++++++++++ namespacemembers_func.html | 82 +++++++++++ namespaces.html | 8 +- namespaceyage_1_1matrix.html | 208 ++++++++++++++++++++++++++++ pages.html | 3 +- particlebody_8hpp_source.html | 9 +- physics_8hpp_source.html | 3 +- picopng_8hpp_source.html | 3 +- rectanglecollider_8hpp_source.html | 7 +- resourcemanager_8hpp_source.html | 8 +- rigidbody_8hpp_source.html | 7 +- search/all_0.js | 2 +- search/all_1.js | 7 +- search/all_2.js | 3 +- search/all_3.js | 7 +- search/all_4.js | 4 +- search/all_5.js | 5 +- search/all_6.js | 5 +- search/all_7.js | 7 +- search/all_8.html | 26 ---- search/all_8.js | 5 - search/all_9.html | 26 ---- search/all_9.js | 5 - search/all_a.html | 26 ---- search/all_a.js | 4 - search/all_b.html | 26 ---- search/all_b.js | 9 -- search/all_c.html | 26 ---- search/all_c.js | 4 - search/all_d.html | 26 ---- search/all_d.js | 4 - search/classes_0.js | 4 +- search/classes_1.js | 6 +- search/classes_2.html | 26 ---- search/classes_2.js | 5 - search/classes_3.html | 26 ---- search/classes_3.js | 6 - search/classes_4.html | 26 ---- search/classes_4.js | 6 - search/classes_5.html | 26 ---- search/classes_5.js | 5 - search/classes_6.html | 26 ---- search/classes_6.js | 8 -- search/classes_7.html | 26 ---- search/classes_7.js | 5 - search/classes_8.html | 26 ---- search/classes_8.js | 5 - search/classes_9.html | 26 ---- search/classes_9.js | 4 - search/classes_a.html | 26 ---- search/classes_a.js | 9 -- search/classes_b.html | 26 ---- search/classes_b.js | 4 - search/functions_0.html | 26 ++++ search/functions_0.js | 4 + search/functions_1.html | 26 ++++ search/functions_1.js | 4 + search/functions_2.html | 26 ++++ search/functions_2.js | 4 + search/functions_3.html | 26 ++++ search/functions_3.js | 5 + search/functions_4.html | 26 ++++ search/functions_4.js | 4 + search/functions_5.html | 26 ++++ search/functions_5.js | 4 + search/namespaces_0.js | 2 +- search/searchdata.js | 21 ++- search/typedefs_0.html | 26 ++++ search/typedefs_0.js | 4 + search/variables_0.html | 26 ++++ search/variables_0.js | 4 + sprite_8hpp_source.html | 7 +- spritebatch_8hpp_source.html | 10 +- structyage_1_1Color-members.html | 87 ------------ structyage_1_1Color.html | 107 -------------- structyage_1_1Position-members.html | 85 ------------ structyage_1_1Position.html | 101 -------------- structyage_1_1Texture-members.html | 84 ----------- structyage_1_1Texture.html | 97 ------------- structyage_1_1UV-members.html | 85 ------------ structyage_1_1UV.html | 101 -------------- structyage_1_1Vertex-members.html | 89 ------------ structyage_1_1Vertex.html | 113 --------------- texture_8hpp_source.html | 6 +- texturecache_8hpp_source.html | 7 +- vertex_8hpp_source.html | 9 +- window_8hpp_source.html | 6 +- yage_8hpp_source.html | 3 +- 168 files changed, 1134 insertions(+), 5999 deletions(-) delete mode 100644 classyage_1_1Body-members.html delete mode 100644 classyage_1_1Body.html delete mode 100644 classyage_1_1Body.png delete mode 100644 classyage_1_1Camera2D-members.html delete mode 100644 classyage_1_1Camera2D.html delete mode 100644 classyage_1_1Collider-members.html delete mode 100644 classyage_1_1Collider.html delete mode 100644 classyage_1_1Collider.png delete mode 100644 classyage_1_1CollisionBody-members.html delete mode 100644 classyage_1_1CollisionBody.html delete mode 100644 classyage_1_1CollisionBody.png delete mode 100644 classyage_1_1GlslProgram-members.html delete mode 100644 classyage_1_1GlslProgram.html delete mode 100644 classyage_1_1Glyph-members.html delete mode 100644 classyage_1_1Glyph.html delete mode 100644 classyage_1_1ImageLoader-members.html delete mode 100644 classyage_1_1ImageLoader.html delete mode 100644 classyage_1_1InputManager-members.html delete mode 100644 classyage_1_1InputManager.html delete mode 100644 classyage_1_1IoManager-members.html delete mode 100644 classyage_1_1IoManager.html delete mode 100644 classyage_1_1ParticleBody-members.html delete mode 100644 classyage_1_1ParticleBody.html delete mode 100644 classyage_1_1ParticleBody.png delete mode 100644 classyage_1_1RectangleCollider-members.html delete mode 100644 classyage_1_1RectangleCollider.html delete mode 100644 classyage_1_1RectangleCollider.png delete mode 100644 classyage_1_1RenderBatch-members.html delete mode 100644 classyage_1_1RenderBatch.html delete mode 100644 classyage_1_1ResourceManager-members.html delete mode 100644 classyage_1_1ResourceManager.html delete mode 100644 classyage_1_1RigidBody-members.html delete mode 100644 classyage_1_1RigidBody.html delete mode 100644 classyage_1_1RigidBody.png delete mode 100644 classyage_1_1Sprite-members.html delete mode 100644 classyage_1_1Sprite.html delete mode 100644 classyage_1_1SpriteBatch-members.html delete mode 100644 classyage_1_1SpriteBatch.html delete mode 100644 classyage_1_1TextureCache-members.html delete mode 100644 classyage_1_1TextureCache.html delete mode 100644 classyage_1_1Vector-members.html delete mode 100644 classyage_1_1Vector.html delete mode 100644 classyage_1_1Vector.png delete mode 100644 classyage_1_1Vector2.png delete mode 100644 classyage_1_1Window-members.html delete mode 100644 classyage_1_1Window.html delete mode 100644 classyage_1_1detail_1_1Row-members.html delete mode 100644 classyage_1_1detail_1_1Row.html create mode 100644 functions.html create mode 100644 functions_func.html create mode 100644 functions_vars.html delete mode 100644 namespacedetail.html create mode 100644 namespacemembers.html create mode 100644 namespacemembers_func.html create mode 100644 namespaceyage_1_1matrix.html delete mode 100644 search/all_8.html delete mode 100644 search/all_8.js delete mode 100644 search/all_9.html delete mode 100644 search/all_9.js delete mode 100644 search/all_a.html delete mode 100644 search/all_a.js delete mode 100644 search/all_b.html delete mode 100644 search/all_b.js delete mode 100644 search/all_c.html delete mode 100644 search/all_c.js delete mode 100644 search/all_d.html delete mode 100644 search/all_d.js delete mode 100644 search/classes_2.html delete mode 100644 search/classes_2.js delete mode 100644 search/classes_3.html delete mode 100644 search/classes_3.js delete mode 100644 search/classes_4.html delete mode 100644 search/classes_4.js delete mode 100644 search/classes_5.html delete mode 100644 search/classes_5.js delete mode 100644 search/classes_6.html delete mode 100644 search/classes_6.js delete mode 100644 search/classes_7.html delete mode 100644 search/classes_7.js delete mode 100644 search/classes_8.html delete mode 100644 search/classes_8.js delete mode 100644 search/classes_9.html delete mode 100644 search/classes_9.js delete mode 100644 search/classes_a.html delete mode 100644 search/classes_a.js delete mode 100644 search/classes_b.html delete mode 100644 search/classes_b.js create mode 100644 search/functions_0.html create mode 100644 search/functions_0.js create mode 100644 search/functions_1.html create mode 100644 search/functions_1.js create mode 100644 search/functions_2.html create mode 100644 search/functions_2.js create mode 100644 search/functions_3.html create mode 100644 search/functions_3.js create mode 100644 search/functions_4.html create mode 100644 search/functions_4.js create mode 100644 search/functions_5.html create mode 100644 search/functions_5.js create mode 100644 search/typedefs_0.html create mode 100644 search/typedefs_0.js create mode 100644 search/variables_0.html create mode 100644 search/variables_0.js delete mode 100644 structyage_1_1Color-members.html delete mode 100644 structyage_1_1Color.html delete mode 100644 structyage_1_1Position-members.html delete mode 100644 structyage_1_1Position.html delete mode 100644 structyage_1_1Texture-members.html delete mode 100644 structyage_1_1Texture.html delete mode 100644 structyage_1_1UV-members.html delete mode 100644 structyage_1_1UV.html delete mode 100644 structyage_1_1Vertex-members.html delete mode 100644 structyage_1_1Vertex.html diff --git a/annotated.html b/annotated.html index 5e7e9115..c3bd08b8 100644 --- a/annotated.html +++ b/annotated.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -64,42 +65,16 @@ $(function() {
Here are the classes, structs, unions and interfaces with brief descriptions:
-
[detail level 123]
+
[detail level 12]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
 Nyage
 Ndetail
 CRow
 CBody
 CCamera2D
 CCollider
 CCollisionBody
 CColor
 CGlslProgram
 CGlyph
 CImageLoader
 CInputManager
 CIoManager
 CMatrixBase matrix class
 CParticleBody
 CPosition
 CRectangleCollider
 CRenderBatch
 CResourceManager
 CRigidBody
 CSprite
 CSpriteBatch
 CTexture
 CTextureCache
 CUV
 CVector
 CVector2
 CVertex
 CWindow
 CMatrixBase Matrix class used by other similar classes
 CVector22D Vector class
diff --git a/body_8hpp_source.html b/body_8hpp_source.html index a2c250a8..d70e058b 100644 --- a/body_8hpp_source.html +++ b/body_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,14 +68,13 @@ $(function() {
body.hpp
-
1 /* ----------------------------------------------------------------------------
2  * body.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 YAGE_BODY_HPP
10 #define YAGE_BODY_HPP
11 
12 #include "Math/matrix.hpp"
13 
14 namespace yage
15 {
16 
17 class Body
18 {
19 public:
20  // gravity constant
21  static const double GRAVITY;
22 protected:
23  // center of mass of the object
24  Vector2d position_=Vector2d(0, 0);
25 
26  // mass of the object
27  double mass_=1;
28 
29  // current velocity of the object
30  Vector2d velocity_=Vector2d(0, 0);
31 
32  // boolean that defines if gravity can act on the object
33  bool gravity_=true;
34 
35  // current acceleration
36  Vector2d acceleration_=Vector2d(0, 0);
37 
38  // force acting on the body
39  Vector2d force_=Vector2d(0, 0);
40 
41 public:
42  virtual ~Body();
43 
44  // apply force to the object and update the velocity
45  virtual void applyForce(const Vector2d &force)=0;
46  virtual void update()=0;
47 
48  double xPosition() const;
49  double yPosition() const;
50 protected:
51  // protected constructor to initialize member variables
52  Body(const Vector2d &position=Vector2d(0, 0),
53  double mass=1,
54  const Vector2d &velocity=Vector2d(0, 0),
55  bool gravity=false);
56 };
57 
58 } // yage
59 
60 #endif
Templated matrix class.
- -
Definition: body.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * body.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 YAGE_BODY_HPP
10 #define YAGE_BODY_HPP
11 
12 #include "Math/matrix.hpp"
13 
14 namespace yage
15 {
16 
17 class Body
18 {
19 public:
20  // gravity constant
21  static const double GRAVITY;
22 protected:
23  // center of mass of the object
24  Vector2d position_=Vector2d(0, 0);
25 
26  // mass of the object
27  double mass_=1;
28 
29  // current velocity of the object
30  Vector2d velocity_=Vector2d(0, 0);
31 
32  // boolean that defines if gravity can act on the object
33  bool gravity_=true;
34 
35  // current acceleration
36  Vector2d acceleration_=Vector2d(0, 0);
37 
38  // force acting on the body
39  Vector2d force_=Vector2d(0, 0);
40 
41 public:
42  virtual ~Body();
43 
44  // apply force to the object and update the velocity
45  virtual void applyForce(const Vector2d &force)=0;
46  virtual void update()=0;
47 
48  double xPosition() const;
49  double yPosition() const;
50 protected:
51  // protected constructor to initialize member variables
52  Body(const Vector2d &position=Vector2d(0, 0),
53  double mass=1,
54  const Vector2d &velocity=Vector2d(0, 0),
55  bool gravity=false);
56 };
57 
58 } // yage
59 
60 #endif
Templated matrix class.
+
Vector2< double > Vector2d
Definition of a 2D vector.
Definition: matrix.hpp:388
Definition: camera2d.hpp:17
diff --git a/camera2d_8hpp_source.html b/camera2d_8hpp_source.html index 69893449..9dc0fe66 100644 --- a/camera2d_8hpp_source.html +++ b/camera2d_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,13 +68,11 @@ $(function() {
camera2d.hpp
-
1 /* ----------------------------------------------------------------------------
2  * camera2d.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 CAMERA_2D_HPP
10 #define CAMERA_2D_HPP
11 
12 #include "glslprogram.hpp"
13 
14 #include <glm/glm.hpp>
15 #include <glm/gtc/matrix_transform.hpp>
16 
17 namespace yage
18 {
19 
20 class Camera2D
21 {
22 private:
23  bool matrix_needs_update_=true;
24  float scale_=1;
25  glm::vec2 position_;
26  glm::mat4 camera_matrix_;
27  glm::mat4 ortho_matrix_;
28 
29 public:
30  Camera2D(int screen_width=1280, int screen_height=720);
31  virtual ~Camera2D();
32 
33  // update camera location
34  void update(GlslProgram &program);
35  // camera movement
36  void move(const glm::vec2 &direction);
37 };
38 
39 } // yage
40 
41 #endif
Definition: glslprogram.hpp:19
-
Definition: camera2d.hpp:20
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * camera2d.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 CAMERA_2D_HPP
10 #define CAMERA_2D_HPP
11 
12 #include "glslprogram.hpp"
13 
14 #include <glm/glm.hpp>
15 #include <glm/gtc/matrix_transform.hpp>
16 
17 namespace yage
18 {
19 
20 class Camera2D
21 {
22 private:
23  bool matrix_needs_update_=true;
24  float scale_=1;
25  glm::vec2 position_;
26  glm::mat4 camera_matrix_;
27  glm::mat4 ortho_matrix_;
28 
29 public:
30  Camera2D(int screen_width=1280, int screen_height=720);
31  virtual ~Camera2D();
32 
33  // update camera location
34  void update(GlslProgram &program);
35  // camera movement
36  void move(const glm::vec2 &direction);
37 };
38 
39 } // yage
40 
41 #endif
Definition: camera2d.hpp:17
diff --git a/classes.html b/classes.html index 6a32d71f..643a0a4a 100644 --- a/classes.html +++ b/classes.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -63,39 +64,20 @@ $(function() {
Class Index
-
b | c | g | i | m | p | r | s | t | u | v | w
+
m | v
- - - - - - - - - - - - - + + +
  b  
-
Glyph (yage)   Position (yage)   SpriteBatch (yage)   Vector2 (yage)   
  i  
-
  r  
-
  t  
-
Vertex (yage)   
Body (yage)   
  w  
-
  c  
-
ImageLoader (yage)   RectangleCollider (yage)   Texture (yage)   
InputManager (yage)   RenderBatch (yage)   TextureCache (yage)   Window (yage)   
Camera2D (yage)   IoManager (yage)   ResourceManager (yage)   
  u  
-
Collider (yage)   
  m  
-
RigidBody (yage)   
CollisionBody (yage)   Row (yage::detail)   UV (yage)   
Color (yage)   Matrix (yage)   
  s  
+
  m  
  v  
  g  
-
  p  
-
Sprite (yage)   Vector (yage)   
GlslProgram (yage)   ParticleBody (yage)   
Matrix (yage)   Vector2 (yage)   
-
b | c | g | i | m | p | r | s | t | u | v | w
+
m | v
diff --git a/classyage_1_1Body-members.html b/classyage_1_1Body-members.html deleted file mode 100644 index 67e96c0e..00000000 --- a/classyage_1_1Body-members.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::Body Member List
-
-
- -

This is the complete list of members for yage::Body, including all inherited members.

- - - - - - - - - - - - - - -
acceleration_ (defined in yage::Body)yage::Bodyprotected
applyForce(const Vector2d &force)=0 (defined in yage::Body)yage::Bodypure virtual
Body(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=false) (defined in yage::Body)yage::Bodyprotected
force_ (defined in yage::Body)yage::Bodyprotected
GRAVITY (defined in yage::Body)yage::Bodystatic
gravity_ (defined in yage::Body)yage::Bodyprotected
mass_ (defined in yage::Body)yage::Bodyprotected
position_ (defined in yage::Body)yage::Bodyprotected
update()=0 (defined in yage::Body)yage::Bodypure virtual
velocity_ (defined in yage::Body)yage::Bodyprotected
xPosition() const (defined in yage::Body)yage::Body
yPosition() const (defined in yage::Body)yage::Body
~Body() (defined in yage::Body)yage::Bodyvirtual
- - - - diff --git a/classyage_1_1Body.html b/classyage_1_1Body.html deleted file mode 100644 index 708f8a2d..00000000 --- a/classyage_1_1Body.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - -YAGE: yage::Body Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::Body Class Referenceabstract
-
-
-
-Inheritance diagram for yage::Body:
-
-
- - -yage::CollisionBody -yage::ParticleBody -yage::RigidBody - -
- - - - - - - - - - -

-Public Member Functions

-virtual void applyForce (const Vector2d &force)=0
 
-virtual void update ()=0
 
-double xPosition () const
 
-double yPosition () const
 
- - - -

-Static Public Attributes

-static const double GRAVITY =-9.81
 
- - - -

-Protected Member Functions

Body (const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=false)
 
- - - - - - - - - - - - - -

-Protected Attributes

-Vector2d position_ =Vector2d(0, 0)
 
-double mass_ =1
 
-Vector2d velocity_ =Vector2d(0, 0)
 
-bool gravity_ =true
 
-Vector2d acceleration_ =Vector2d(0, 0)
 
-Vector2d force_ =Vector2d(0, 0)
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1Body.png b/classyage_1_1Body.png deleted file mode 100644 index 4343e414..00000000 Binary files a/classyage_1_1Body.png and /dev/null differ diff --git a/classyage_1_1Camera2D-members.html b/classyage_1_1Camera2D-members.html deleted file mode 100644 index 67296e7b..00000000 --- a/classyage_1_1Camera2D-members.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::Camera2D Member List
-
-
- -

This is the complete list of members for yage::Camera2D, including all inherited members.

- - - - - -
Camera2D(int screen_width=1280, int screen_height=720) (defined in yage::Camera2D)yage::Camera2D
move(const glm::vec2 &direction) (defined in yage::Camera2D)yage::Camera2D
update(GlslProgram &program) (defined in yage::Camera2D)yage::Camera2D
~Camera2D() (defined in yage::Camera2D)yage::Camera2Dvirtual
- - - - diff --git a/classyage_1_1Camera2D.html b/classyage_1_1Camera2D.html deleted file mode 100644 index f04ed868..00000000 --- a/classyage_1_1Camera2D.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - -YAGE: yage::Camera2D Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::Camera2D Class Reference
-
-
- - - - - - - - -

-Public Member Functions

Camera2D (int screen_width=1280, int screen_height=720)
 
-void update (GlslProgram &program)
 
-void move (const glm::vec2 &direction)
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1Collider-members.html b/classyage_1_1Collider-members.html deleted file mode 100644 index a859706a..00000000 --- a/classyage_1_1Collider-members.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::Collider Member List
-
-
- -

This is the complete list of members for yage::Collider, including all inherited members.

- - - - - - - -
Collider(const glm::vec2 &position, const glm::vec2 &size) (defined in yage::Collider)yage::Colliderinline
collides(const Collider &collider) const =0 (defined in yage::Collider)yage::Colliderpure virtual
inside(const glm::vec2 &point) const =0 (defined in yage::Collider)yage::Colliderpure virtual
position_ (defined in yage::Collider)yage::Colliderprotected
size_ (defined in yage::Collider)yage::Colliderprotected
~Collider() (defined in yage::Collider)yage::Colliderinlinevirtual
- - - - diff --git a/classyage_1_1Collider.html b/classyage_1_1Collider.html deleted file mode 100644 index ba03f593..00000000 --- a/classyage_1_1Collider.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - -YAGE: yage::Collider Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::Collider Class Referenceabstract
-
-
-
-Inheritance diagram for yage::Collider:
-
-
- - -yage::RectangleCollider - -
- - - - - - - - -

-Public Member Functions

Collider (const glm::vec2 &position, const glm::vec2 &size)
 
-virtual bool collides (const Collider &collider) const =0
 
-virtual bool inside (const glm::vec2 &point) const =0
 
- - - - - -

-Protected Attributes

-glm::vec2 position_
 
-glm::vec2 size_
 
-
The documentation for this class was generated from the following file: -
- - - - diff --git a/classyage_1_1Collider.png b/classyage_1_1Collider.png deleted file mode 100644 index f00858b9..00000000 Binary files a/classyage_1_1Collider.png and /dev/null differ diff --git a/classyage_1_1CollisionBody-members.html b/classyage_1_1CollisionBody-members.html deleted file mode 100644 index 6bcc71a8..00000000 --- a/classyage_1_1CollisionBody-members.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::CollisionBody Member List
-
-
- -

This is the complete list of members for yage::CollisionBody, including all inherited members.

- - - - - - - - - - - - - - - - -
acceleration_ (defined in yage::Body)yage::Bodyprotected
applyForce(const Vector2d &force)=0 (defined in yage::Body)yage::Bodypure virtual
Body(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=false) (defined in yage::Body)yage::Bodyprotected
CollisionBody() (defined in yage::CollisionBody)yage::CollisionBody
force_ (defined in yage::Body)yage::Bodyprotected
GRAVITY (defined in yage::Body)yage::Bodystatic
gravity_ (defined in yage::Body)yage::Bodyprotected
mass_ (defined in yage::Body)yage::Bodyprotected
position_ (defined in yage::Body)yage::Bodyprotected
update()=0 (defined in yage::Body)yage::Bodypure virtual
velocity_ (defined in yage::Body)yage::Bodyprotected
xPosition() const (defined in yage::Body)yage::Body
yPosition() const (defined in yage::Body)yage::Body
~Body() (defined in yage::Body)yage::Bodyvirtual
~CollisionBody() (defined in yage::CollisionBody)yage::CollisionBodyvirtual
- - - - diff --git a/classyage_1_1CollisionBody.html b/classyage_1_1CollisionBody.html deleted file mode 100644 index 0835e367..00000000 --- a/classyage_1_1CollisionBody.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - -YAGE: yage::CollisionBody Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::CollisionBody Class Reference
-
-
-
-Inheritance diagram for yage::CollisionBody:
-
-
- - -yage::Body - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-Additional Inherited Members

- Public Member Functions inherited from yage::Body
-virtual void applyForce (const Vector2d &force)=0
 
-virtual void update ()=0
 
-double xPosition () const
 
-double yPosition () const
 
- Static Public Attributes inherited from yage::Body
-static const double GRAVITY =-9.81
 
- Protected Member Functions inherited from yage::Body
Body (const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=false)
 
- Protected Attributes inherited from yage::Body
-Vector2d position_ =Vector2d(0, 0)
 
-double mass_ =1
 
-Vector2d velocity_ =Vector2d(0, 0)
 
-bool gravity_ =true
 
-Vector2d acceleration_ =Vector2d(0, 0)
 
-Vector2d force_ =Vector2d(0, 0)
 
-
The documentation for this class was generated from the following file: -
- - - - diff --git a/classyage_1_1CollisionBody.png b/classyage_1_1CollisionBody.png deleted file mode 100644 index c297c566..00000000 Binary files a/classyage_1_1CollisionBody.png and /dev/null differ diff --git a/classyage_1_1GlslProgram-members.html b/classyage_1_1GlslProgram-members.html deleted file mode 100644 index a762b105..00000000 --- a/classyage_1_1GlslProgram-members.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::GlslProgram Member List
-
-
- -

This is the complete list of members for yage::GlslProgram, including all inherited members.

- - - - - - - - - -
addAttribute(const std::string &attribute_name) (defined in yage::GlslProgram)yage::GlslProgram
compileShaders(const std::string &vertex_shader_path, const std::string &fragment_shader_path) (defined in yage::GlslProgram)yage::GlslProgram
getUniformLocation(const std::string &uniform_name) (defined in yage::GlslProgram)yage::GlslProgram
GlslProgram() (defined in yage::GlslProgram)yage::GlslProgram
linkShaders() (defined in yage::GlslProgram)yage::GlslProgram
unuse() (defined in yage::GlslProgram)yage::GlslProgram
use() (defined in yage::GlslProgram)yage::GlslProgram
~GlslProgram() (defined in yage::GlslProgram)yage::GlslProgram
- - - - diff --git a/classyage_1_1GlslProgram.html b/classyage_1_1GlslProgram.html deleted file mode 100644 index 2c07ae30..00000000 --- a/classyage_1_1GlslProgram.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - -YAGE: yage::GlslProgram Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::GlslProgram Class Reference
-
-
- - - - - - - - - - - - - - -

-Public Member Functions

-void compileShaders (const std::string &vertex_shader_path, const std::string &fragment_shader_path)
 
-void linkShaders ()
 
-void addAttribute (const std::string &attribute_name)
 
-GLint getUniformLocation (const std::string &uniform_name)
 
-void use ()
 
-void unuse ()
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1Glyph-members.html b/classyage_1_1Glyph-members.html deleted file mode 100644 index f6c37062..00000000 --- a/classyage_1_1Glyph-members.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::Glyph Member List
-
-
- -

This is the complete list of members for yage::Glyph, including all inherited members.

- - - - - - - - -
bottom_left() const (defined in yage::Glyph)yage::Glyphinline
bottom_right() const (defined in yage::Glyph)yage::Glyphinline
depth() const (defined in yage::Glyph)yage::Glyphinline
Glyph(GLuint texture, float depth, const Vertex &top_left, const Vertex &top_right, const Vertex &bottom_right, const Vertex &bottom_left) (defined in yage::Glyph)yage::Glyph
texture() const (defined in yage::Glyph)yage::Glyphinline
top_left() const (defined in yage::Glyph)yage::Glyphinline
top_right() const (defined in yage::Glyph)yage::Glyphinline
- - - - diff --git a/classyage_1_1Glyph.html b/classyage_1_1Glyph.html deleted file mode 100644 index 455dfb3f..00000000 --- a/classyage_1_1Glyph.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - -YAGE: yage::Glyph Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::Glyph Class Reference
-
-
- - - - - - - - - - - - - - - - -

-Public Member Functions

Glyph (GLuint texture, float depth, const Vertex &top_left, const Vertex &top_right, const Vertex &bottom_right, const Vertex &bottom_left)
 
-GLuint texture () const
 
-float depth () const
 
-Vertex top_left () const
 
-Vertex top_right () const
 
-Vertex bottom_right () const
 
-Vertex bottom_left () const
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1ImageLoader-members.html b/classyage_1_1ImageLoader-members.html deleted file mode 100644 index eb62da0f..00000000 --- a/classyage_1_1ImageLoader-members.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::ImageLoader Member List
-
-
- -

This is the complete list of members for yage::ImageLoader, including all inherited members.

- - -
loadPng(const std::string &file_path) (defined in yage::ImageLoader)yage::ImageLoaderstatic
- - - - diff --git a/classyage_1_1ImageLoader.html b/classyage_1_1ImageLoader.html deleted file mode 100644 index d96b5f49..00000000 --- a/classyage_1_1ImageLoader.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - -YAGE: yage::ImageLoader Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::ImageLoader Class Reference
-
-
- - - - -

-Static Public Member Functions

-static Texture loadPng (const std::string &file_path)
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1InputManager-members.html b/classyage_1_1InputManager-members.html deleted file mode 100644 index 74b53d11..00000000 --- a/classyage_1_1InputManager-members.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::InputManager Member List
-
-
- -

This is the complete list of members for yage::InputManager, including all inherited members.

- - - - -
isKeyPressed(unsigned key) const (defined in yage::InputManager)yage::InputManager
keyPressed(unsigned key) (defined in yage::InputManager)yage::InputManager
keyReleased(unsigned key) (defined in yage::InputManager)yage::InputManager
- - - - diff --git a/classyage_1_1InputManager.html b/classyage_1_1InputManager.html deleted file mode 100644 index 727d9e36..00000000 --- a/classyage_1_1InputManager.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - -YAGE: yage::InputManager Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::InputManager Class Reference
-
-
- - - - - - - - -

-Public Member Functions

-void keyPressed (unsigned key)
 
-void keyReleased (unsigned key)
 
-bool isKeyPressed (unsigned key) const
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1IoManager-members.html b/classyage_1_1IoManager-members.html deleted file mode 100644 index 5b2c7659..00000000 --- a/classyage_1_1IoManager-members.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::IoManager Member List
-
-
- -

This is the complete list of members for yage::IoManager, including all inherited members.

- - -
readFileToBuffer(const std::string &file_path, std::vector< unsigned char > &buffer) (defined in yage::IoManager)yage::IoManagerstatic
- - - - diff --git a/classyage_1_1IoManager.html b/classyage_1_1IoManager.html deleted file mode 100644 index 7c3fa4e2..00000000 --- a/classyage_1_1IoManager.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - -YAGE: yage::IoManager Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::IoManager Class Reference
-
-
- - - - -

-Static Public Member Functions

-static bool readFileToBuffer (const std::string &file_path, std::vector< unsigned char > &buffer)
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1Matrix-members.html b/classyage_1_1Matrix-members.html index a73522d9..634906e5 100644 --- a/classyage_1_1Matrix-members.html +++ b/classyage_1_1Matrix-members.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -70,25 +71,15 @@ $(function() {

This is the complete list of members for yage::Matrix< Rows, Cols, Type >, including all inherited members.

- - - - - - - - - - - - - - - + + + + +
begin() (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
colSize() const (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
data_ (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >protected
detail::Row< Rows, Cols, Type > (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >friend
end() (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
getCol(int col) const (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
getRow(int row) const (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
Matrix() (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
operator+=(const Matrix< Rows, Cols, Type > &rhs) (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
operator-=(const Matrix< Rows, Cols, Type > &rhs) (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
operator=(const Matrix< Rows, Cols, Type > &other) (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
operator[](int row) (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
operator[](int row) const (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
rowSize() const (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inline
toString() const (defined in yage::Matrix< Rows, Cols, Type >)yage::Matrix< Rows, Cols, Type >inlinevirtual
colSize() constyage::Matrix< Rows, Cols, Type >inline
data_yage::Matrix< Rows, Cols, Type >protected
getRow(int row) constyage::Matrix< Rows, Cols, Type >inline
Matrix()yage::Matrix< Rows, Cols, Type >inline
rowSize() constyage::Matrix< Rows, Cols, Type >inline
diff --git a/classyage_1_1Matrix.html b/classyage_1_1Matrix.html index 60572cad..0368df72 100644 --- a/classyage_1_1Matrix.html +++ b/classyage_1_1Matrix.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -66,83 +67,94 @@ $(function() {
Public Member Functions | Protected Attributes | -Friends | List of all members
yage::Matrix< Rows, Cols, Type > Class Template Reference
-

Base matrix class. +

Base Matrix class used by other similar classes. More...

#include <matrix.hpp>

+ + + +int  + +int  + - + + - - - - - - - - - - - - - - - - - -

Public Member Functions

Matrix ()
 Initializes the size of the data_ vector.
 
-int rowSize () const
rowSize () const
 Returns the row size of the Matrix.
 
-int colSize () const
colSize () const
 Returns the column size of the Matrixxs.
 
-Matrix< 1, Cols, Type > getRow (int row) const
Matrix< 1, Cols, Type > getRow (int row) const
 Return the row specified row as a Matrix with only one row. More...
 
-Matrix< Rows, 1, Type > getCol (int col) const
 
-std::vector< Type >::iterator begin ()
 
-std::vector< Type >::iterator end ()
 
-virtual std::string toString () const
 
-detail::Row< Rows, Cols, Type > operator[] (int row)
 
-detail::Row< Rows, Cols, Type > operator[] (int row) const
 
-Matrix< Rows, Cols, Type > & operator= (const Matrix< Rows, Cols, Type > &other)
 
-Matrix< Rows, Cols, Type > & operator+= (const Matrix< Rows, Cols, Type > &rhs)
 
-Matrix< Rows, Cols, Type > & operator-= (const Matrix< Rows, Cols, Type > &rhs)
 
+std::vector< Type >  + -

Protected Attributes

-std::vector< Type > data_
data_
 Vector containing the data of the matrix.
 
- - -

-Friends

-class detail::Row< Rows, Cols, Type >
 

Detailed Description

template<int Rows = 4, int Cols = 4, class Type = double>
class yage::Matrix< Rows, Cols, Type >

-

Base matrix class.

-

Matrix class

+

Base Matrix class used by other similar classes.

+

Matrix class

This is the base matrix class that can be used by all the other matrix like data structures.

-

The documentation for this class was generated from the following file:

Member Function Documentation

+ +

◆ getRow()

+ +
+
+
+template<int Rows = 4, int Cols = 4, class Type = double>
+ + + + + +
+ + + + + + + + +
Matrix<1, Cols, Type> yage::Matrix< Rows, Cols, Type >::getRow (int row) const
+
+inline
+
+ +

Return the row specified row as a Matrix with only one row.

+
Parameters
+ + +
[in]rowRow number to be returned
+
+
+

Returns the row that is specified by the row variables.

+ +
+
+
The documentation for this class was generated from the following file: diff --git a/classyage_1_1ParticleBody-members.html b/classyage_1_1ParticleBody-members.html deleted file mode 100644 index 5205c061..00000000 --- a/classyage_1_1ParticleBody-members.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::ParticleBody Member List
-
-
- -

This is the complete list of members for yage::ParticleBody, including all inherited members.

- - - - - - - - - - - - - - - -
acceleration_ (defined in yage::Body)yage::Bodyprotected
applyForce(const Vector2d &force) (defined in yage::ParticleBody)yage::ParticleBodyvirtual
Body(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=false) (defined in yage::Body)yage::Bodyprotected
force_ (defined in yage::Body)yage::Bodyprotected
GRAVITY (defined in yage::Body)yage::Bodystatic
gravity_ (defined in yage::Body)yage::Bodyprotected
mass_ (defined in yage::Body)yage::Bodyprotected
ParticleBody(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true) (defined in yage::ParticleBody)yage::ParticleBody
position_ (defined in yage::Body)yage::Bodyprotected
update() (defined in yage::ParticleBody)yage::ParticleBodyvirtual
velocity_ (defined in yage::Body)yage::Bodyprotected
xPosition() const (defined in yage::Body)yage::Body
yPosition() const (defined in yage::Body)yage::Body
~Body() (defined in yage::Body)yage::Bodyvirtual
- - - - diff --git a/classyage_1_1ParticleBody.html b/classyage_1_1ParticleBody.html deleted file mode 100644 index d66c3bd9..00000000 --- a/classyage_1_1ParticleBody.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - -YAGE: yage::ParticleBody Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::ParticleBody Class Reference
-
-
-
-Inheritance diagram for yage::ParticleBody:
-
-
- - -yage::Body -yage::RigidBody - -
- - - - - - - - - - - - - -

-Public Member Functions

ParticleBody (const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true)
 
-virtual void applyForce (const Vector2d &force)
 
-virtual void update ()
 
- Public Member Functions inherited from yage::Body
-double xPosition () const
 
-double yPosition () const
 
- - - - - - - - - - - - - - - - - - - - -

-Additional Inherited Members

- Static Public Attributes inherited from yage::Body
-static const double GRAVITY =-9.81
 
- Protected Member Functions inherited from yage::Body
Body (const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=false)
 
- Protected Attributes inherited from yage::Body
-Vector2d position_ =Vector2d(0, 0)
 
-double mass_ =1
 
-Vector2d velocity_ =Vector2d(0, 0)
 
-bool gravity_ =true
 
-Vector2d acceleration_ =Vector2d(0, 0)
 
-Vector2d force_ =Vector2d(0, 0)
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1ParticleBody.png b/classyage_1_1ParticleBody.png deleted file mode 100644 index 1df7c42f..00000000 Binary files a/classyage_1_1ParticleBody.png and /dev/null differ diff --git a/classyage_1_1RectangleCollider-members.html b/classyage_1_1RectangleCollider-members.html deleted file mode 100644 index 10fe6205..00000000 --- a/classyage_1_1RectangleCollider-members.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::RectangleCollider Member List
-
-
- -

This is the complete list of members for yage::RectangleCollider, including all inherited members.

- - - - - - - - -
Collider(const glm::vec2 &position, const glm::vec2 &size) (defined in yage::Collider)yage::Colliderinline
collides(const Collider &collider) const (defined in yage::RectangleCollider)yage::RectangleCollidervirtual
inside(const glm::vec2 &point) const (defined in yage::RectangleCollider)yage::RectangleColliderinlinevirtual
position_ (defined in yage::Collider)yage::Colliderprotected
RectangleCollider(const glm::vec2 &position, const glm::vec2 &size) (defined in yage::RectangleCollider)yage::RectangleCollider
size_ (defined in yage::Collider)yage::Colliderprotected
~Collider() (defined in yage::Collider)yage::Colliderinlinevirtual
- - - - diff --git a/classyage_1_1RectangleCollider.html b/classyage_1_1RectangleCollider.html deleted file mode 100644 index 854c83c6..00000000 --- a/classyage_1_1RectangleCollider.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - -YAGE: yage::RectangleCollider Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::RectangleCollider Class Reference
-
-
-
-Inheritance diagram for yage::RectangleCollider:
-
-
- - -yage::Collider - -
- - - - - - - - - - - -

-Public Member Functions

RectangleCollider (const glm::vec2 &position, const glm::vec2 &size)
 
-virtual bool collides (const Collider &collider) const
 
-virtual bool inside (const glm::vec2 &point) const
 
- Public Member Functions inherited from yage::Collider
Collider (const glm::vec2 &position, const glm::vec2 &size)
 
- - - - - - -

-Additional Inherited Members

- Protected Attributes inherited from yage::Collider
-glm::vec2 position_
 
-glm::vec2 size_
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1RectangleCollider.png b/classyage_1_1RectangleCollider.png deleted file mode 100644 index d6857b7c..00000000 Binary files a/classyage_1_1RectangleCollider.png and /dev/null differ diff --git a/classyage_1_1RenderBatch-members.html b/classyage_1_1RenderBatch-members.html deleted file mode 100644 index 5c34631f..00000000 --- a/classyage_1_1RenderBatch-members.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::RenderBatch Member List
-
-
- -

This is the complete list of members for yage::RenderBatch, including all inherited members.

- - - - - -
num_vertices() const (defined in yage::RenderBatch)yage::RenderBatchinline
offset() const (defined in yage::RenderBatch)yage::RenderBatchinline
RenderBatch(GLint offset, GLsizei num_vertices, GLuint texture) (defined in yage::RenderBatch)yage::RenderBatch
texture() const (defined in yage::RenderBatch)yage::RenderBatchinline
- - - - diff --git a/classyage_1_1RenderBatch.html b/classyage_1_1RenderBatch.html deleted file mode 100644 index 03986bd5..00000000 --- a/classyage_1_1RenderBatch.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - -YAGE: yage::RenderBatch Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::RenderBatch Class Reference
-
-
- - - - - - - - - - -

-Public Member Functions

RenderBatch (GLint offset, GLsizei num_vertices, GLuint texture)
 
-GLint offset () const
 
-GLsizei num_vertices () const
 
-GLuint texture () const
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1ResourceManager-members.html b/classyage_1_1ResourceManager-members.html deleted file mode 100644 index d25f7d09..00000000 --- a/classyage_1_1ResourceManager-members.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::ResourceManager Member List
-
-
- -

This is the complete list of members for yage::ResourceManager, including all inherited members.

- - -
getTexture(const std::string &texture_path) (defined in yage::ResourceManager)yage::ResourceManagerstatic
- - - - diff --git a/classyage_1_1ResourceManager.html b/classyage_1_1ResourceManager.html deleted file mode 100644 index 148c37a8..00000000 --- a/classyage_1_1ResourceManager.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - -YAGE: yage::ResourceManager Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::ResourceManager Class Reference
-
-
- - - - -

-Static Public Member Functions

-static Texture getTexture (const std::string &texture_path)
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1RigidBody-members.html b/classyage_1_1RigidBody-members.html deleted file mode 100644 index 8a8f6919..00000000 --- a/classyage_1_1RigidBody-members.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::RigidBody Member List
-
-
- -

This is the complete list of members for yage::RigidBody, including all inherited members.

- - - - - - - - - - - - - - - - -
acceleration_ (defined in yage::Body)yage::Bodyprotected
applyForce(const Vector2d &force) (defined in yage::ParticleBody)yage::ParticleBodyvirtual
Body(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=false) (defined in yage::Body)yage::Bodyprotected
force_ (defined in yage::Body)yage::Bodyprotected
GRAVITY (defined in yage::Body)yage::Bodystatic
gravity_ (defined in yage::Body)yage::Bodyprotected
mass_ (defined in yage::Body)yage::Bodyprotected
ParticleBody(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true) (defined in yage::ParticleBody)yage::ParticleBody
position_ (defined in yage::Body)yage::Bodyprotected
RigidBody(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true) (defined in yage::RigidBody)yage::RigidBody
update() (defined in yage::ParticleBody)yage::ParticleBodyvirtual
velocity_ (defined in yage::Body)yage::Bodyprotected
xPosition() const (defined in yage::Body)yage::Body
yPosition() const (defined in yage::Body)yage::Body
~Body() (defined in yage::Body)yage::Bodyvirtual
- - - - diff --git a/classyage_1_1RigidBody.html b/classyage_1_1RigidBody.html deleted file mode 100644 index 9bd2263c..00000000 --- a/classyage_1_1RigidBody.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - -YAGE: yage::RigidBody Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::RigidBody Class Reference
-
-
-
-Inheritance diagram for yage::RigidBody:
-
-
- - -yage::ParticleBody -yage::Body - -
- - - - - - - - - - - - - - - - -

-Public Member Functions

RigidBody (const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true)
 
- Public Member Functions inherited from yage::ParticleBody
ParticleBody (const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true)
 
-virtual void applyForce (const Vector2d &force)
 
-virtual void update ()
 
- Public Member Functions inherited from yage::Body
-double xPosition () const
 
-double yPosition () const
 
- - - - - - - - - - - - - - - - - - - - -

-Additional Inherited Members

- Static Public Attributes inherited from yage::Body
-static const double GRAVITY =-9.81
 
- Protected Member Functions inherited from yage::Body
Body (const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=false)
 
- Protected Attributes inherited from yage::Body
-Vector2d position_ =Vector2d(0, 0)
 
-double mass_ =1
 
-Vector2d velocity_ =Vector2d(0, 0)
 
-bool gravity_ =true
 
-Vector2d acceleration_ =Vector2d(0, 0)
 
-Vector2d force_ =Vector2d(0, 0)
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1RigidBody.png b/classyage_1_1RigidBody.png deleted file mode 100644 index bfa1f2e1..00000000 Binary files a/classyage_1_1RigidBody.png and /dev/null differ diff --git a/classyage_1_1Sprite-members.html b/classyage_1_1Sprite-members.html deleted file mode 100644 index 93160d07..00000000 --- a/classyage_1_1Sprite-members.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::Sprite Member List
-
-
- -

This is the complete list of members for yage::Sprite, including all inherited members.

- - - - - -
draw() (defined in yage::Sprite)yage::Sprite
init(float x, float y, float width, float height, const std::string &texture_path) (defined in yage::Sprite)yage::Sprite
Sprite() (defined in yage::Sprite)yage::Sprite
~Sprite() (defined in yage::Sprite)yage::Sprite
- - - - diff --git a/classyage_1_1Sprite.html b/classyage_1_1Sprite.html deleted file mode 100644 index 4c4c9821..00000000 --- a/classyage_1_1Sprite.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - -YAGE: yage::Sprite Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::Sprite Class Reference
-
-
- - - - - - -

-Public Member Functions

-void init (float x, float y, float width, float height, const std::string &texture_path)
 
-void draw ()
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1SpriteBatch-members.html b/classyage_1_1SpriteBatch-members.html deleted file mode 100644 index e18129de..00000000 --- a/classyage_1_1SpriteBatch-members.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::SpriteBatch Member List
-
-
- -

This is the complete list of members for yage::SpriteBatch, including all inherited members.

- - - - - - - - - -
begin() (defined in yage::SpriteBatch)yage::SpriteBatch
draw(const glm::vec4 &destination_rect, const glm::vec4 &uv_rect, GLuint texture, const Color &color, float depth) (defined in yage::SpriteBatch)yage::SpriteBatch
end() (defined in yage::SpriteBatch)yage::SpriteBatch
init() (defined in yage::SpriteBatch)yage::SpriteBatch
NUM_VERTICES (defined in yage::SpriteBatch)yage::SpriteBatchstatic
render() (defined in yage::SpriteBatch)yage::SpriteBatch
SpriteBatch() (defined in yage::SpriteBatch)yage::SpriteBatch
~SpriteBatch() (defined in yage::SpriteBatch)yage::SpriteBatch
- - - - diff --git a/classyage_1_1SpriteBatch.html b/classyage_1_1SpriteBatch.html deleted file mode 100644 index 9ffa0317..00000000 --- a/classyage_1_1SpriteBatch.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - -YAGE: yage::SpriteBatch Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::SpriteBatch Class Reference
-
-
- - - - - - - - - - - - -

-Public Member Functions

-void init ()
 
-void begin ()
 
-void end ()
 
-void draw (const glm::vec4 &destination_rect, const glm::vec4 &uv_rect, GLuint texture, const Color &color, float depth)
 
-void render ()
 
- - - -

-Static Public Attributes

-static const int NUM_VERTICES =6
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1TextureCache-members.html b/classyage_1_1TextureCache-members.html deleted file mode 100644 index 451eb7ca..00000000 --- a/classyage_1_1TextureCache-members.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::TextureCache Member List
-
-
- -

This is the complete list of members for yage::TextureCache, including all inherited members.

- - - - -
getTexture(const std::string &texture_path) (defined in yage::TextureCache)yage::TextureCache
TextureCache() (defined in yage::TextureCache)yage::TextureCache
~TextureCache() (defined in yage::TextureCache)yage::TextureCache
- - - - diff --git a/classyage_1_1TextureCache.html b/classyage_1_1TextureCache.html deleted file mode 100644 index 65c59ccb..00000000 --- a/classyage_1_1TextureCache.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - -YAGE: yage::TextureCache Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::TextureCache Class Reference
-
-
- - - - -

-Public Member Functions

-Texture getTexture (const std::string &texture_path)
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1Vector-members.html b/classyage_1_1Vector-members.html deleted file mode 100644 index 6781ff8b..00000000 --- a/classyage_1_1Vector-members.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::Vector< Rows, Type > Member List
-
-
- -

This is the complete list of members for yage::Vector< Rows, Type >, including all inherited members.

- - - - - - - - - - - - - - - - - -
begin() (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
colSize() const (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
data_ (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >protected
end() (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
getCol(int col) const (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
getRow(int row) const (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
Matrix() (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
operator+=(const Matrix< Rows, Cols, Type > &rhs) (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
operator-=(const Matrix< Rows, Cols, Type > &rhs) (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
operator=(const Matrix< Rows, Cols, Type > &other) (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
operator[](int col) (defined in yage::Vector< Rows, Type >)yage::Vector< Rows, Type >inline
operator[](int col) const (defined in yage::Vector< Rows, Type >)yage::Vector< Rows, Type >inline
rowSize() const (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
toString() const (defined in yage::Vector< Rows, Type >)yage::Vector< Rows, Type >inlinevirtual
Vector() (defined in yage::Vector< Rows, Type >)yage::Vector< Rows, Type >inline
Vector(const Matrix< Rows, 1, Type > &other) (defined in yage::Vector< Rows, Type >)yage::Vector< Rows, Type >inlineexplicit
- - - - diff --git a/classyage_1_1Vector.html b/classyage_1_1Vector.html deleted file mode 100644 index c013696f..00000000 --- a/classyage_1_1Vector.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - -YAGE: yage::Vector< Rows, Type > Class Template Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::Vector< Rows, Type > Class Template Reference
-
-
-
-Inheritance diagram for yage::Vector< Rows, Type >:
-
-
- - -yage::Matrix< Rows, 1, Type > - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-Public Member Functions

Vector (const Matrix< Rows, 1, Type > &other)
 
-Type & operator[] (int col)
 
-const Type & operator[] (int col) const
 
-virtual std::string toString () const
 
- Public Member Functions inherited from yage::Matrix< Rows, 1, Type >
-int rowSize () const
 
-int colSize () const
 
-Matrix< 1, Cols, Type > getRow (int row) const
 
-Matrix< Rows, 1, Type > getCol (int col) const
 
-std::vector< Type >::iterator begin ()
 
-std::vector< Type >::iterator end ()
 
-detail::Row< Rows, Cols, Type > operator[] (int row)
 
-detail::Row< Rows, Cols, Type > operator[] (int row) const
 
-Matrix< Rows, Cols, Type > & operator= (const Matrix< Rows, Cols, Type > &other)
 
-Matrix< Rows, Cols, Type > & operator+= (const Matrix< Rows, Cols, Type > &rhs)
 
-Matrix< Rows, Cols, Type > & operator-= (const Matrix< Rows, Cols, Type > &rhs)
 
- - - - -

-Additional Inherited Members

- Protected Attributes inherited from yage::Matrix< Rows, 1, Type >
-std::vector< Type > data_
 
-
The documentation for this class was generated from the following file: -
- - - - diff --git a/classyage_1_1Vector.png b/classyage_1_1Vector.png deleted file mode 100644 index ec1fc517..00000000 Binary files a/classyage_1_1Vector.png and /dev/null differ diff --git a/classyage_1_1Vector2-members.html b/classyage_1_1Vector2-members.html index 3fbf23ae..8d3723fc 100644 --- a/classyage_1_1Vector2-members.html +++ b/classyage_1_1Vector2-members.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -70,33 +71,15 @@ $(function() {

This is the complete list of members for yage::Vector2< Type >, including all inherited members.

- - - - - - - - - - - - - - - - - - - - - - - + + + + +
begin() (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
colSize() const (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
data_ (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >protected
end() (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
getCol(int col) const (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
getRow(int row) const (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
Matrix() (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
operator+=(const Matrix< Rows, Cols, Type > &rhs) (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
operator-=(const Matrix< Rows, Cols, Type > &rhs) (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
operator=(const Matrix< Rows, Cols, Type > &other) (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
operator[](int col) (defined in yage::Vector< 2, Type >)yage::Vector< 2, Type >inline
operator[](int col) const (defined in yage::Vector< 2, Type >)yage::Vector< 2, Type >inline
rowSize() const (defined in yage::Matrix< Rows, 1, Type >)yage::Matrix< Rows, 1, Type >inline
toString() const (defined in yage::Vector< 2, Type >)yage::Vector< 2, Type >inlinevirtual
Vector() (defined in yage::Vector< 2, Type >)yage::Vector< 2, Type >inline
Vector(const Matrix< Rows, 1, Type > &other) (defined in yage::Vector< 2, Type >)yage::Vector< 2, Type >inlineexplicit
Vector2() (defined in yage::Vector2< Type >)yage::Vector2< Type >inline
Vector2(Type x, Type y) (defined in yage::Vector2< Type >)yage::Vector2< Type >inline
Vector2(const Matrix< 2, 1, Type > &other) (defined in yage::Vector2< Type >)yage::Vector2< Type >inline
x() (defined in yage::Vector2< Type >)yage::Vector2< Type >inline
x() const (defined in yage::Vector2< Type >)yage::Vector2< Type >inline
y() (defined in yage::Vector2< Type >)yage::Vector2< Type >inline
y() const (defined in yage::Vector2< Type >)yage::Vector2< Type >inline
colSize() constyage::Matrix< Rows, 1, Type >inline
data_yage::Matrix< Rows, 1, Type >protected
getRow(int row) constyage::Matrix< Rows, 1, Type >inline
Matrix()yage::Matrix< Rows, 1, Type >inline
rowSize() constyage::Matrix< Rows, 1, Type >inline
diff --git a/classyage_1_1Vector2.html b/classyage_1_1Vector2.html index 879b9fe8..b57174b0 100644 --- a/classyage_1_1Vector2.html +++ b/classyage_1_1Vector2.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -64,105 +65,31 @@ $(function() {
yage::Vector2< Type > Class Template Reference
-
-Inheritance diagram for yage::Vector2< Type >:
-
-
- - -yage::Vector< 2, Type > -yage::Matrix< Rows, 1, Type > - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-Public Member Functions

Vector2 (Type x, Type y)
 
Vector2 (const Matrix< 2, 1, Type > &other)
 
-Type & x ()
 
-const Type & x () const
 
-Type & y ()
 
-const Type & y () const
 
- Public Member Functions inherited from yage::Vector< 2, Type >
Vector (const Matrix< Rows, 1, Type > &other)
 
-Type & operator[] (int col)
 
-const Type & operator[] (int col) const
 
-virtual std::string toString () const
 
- Public Member Functions inherited from yage::Matrix< Rows, 1, Type >
-int rowSize () const
 
-int colSize () const
 
-Matrix< 1, Cols, Type > getRow (int row) const
 
-Matrix< Rows, 1, Type > getCol (int col) const
 
-std::vector< Type >::iterator begin ()
 
-std::vector< Type >::iterator end ()
 
-detail::Row< Rows, Cols, Type > operator[] (int row)
 
-detail::Row< Rows, Cols, Type > operator[] (int row) const
 
-Matrix< Rows, Cols, Type > & operator= (const Matrix< Rows, Cols, Type > &other)
 
-Matrix< Rows, Cols, Type > & operator+= (const Matrix< Rows, Cols, Type > &rhs)
 
-Matrix< Rows, Cols, Type > & operator-= (const Matrix< Rows, Cols, Type > &rhs)
 
- - - - -

-Additional Inherited Members

- Protected Attributes inherited from yage::Matrix< Rows, 1, Type >
-std::vector< Type > data_
 
-
The documentation for this class was generated from the following file:
diff --git a/classyage_1_1Vector2.png b/classyage_1_1Vector2.png deleted file mode 100644 index 20f24356..00000000 Binary files a/classyage_1_1Vector2.png and /dev/null differ diff --git a/classyage_1_1Window-members.html b/classyage_1_1Window-members.html deleted file mode 100644 index 8cf6d57e..00000000 --- a/classyage_1_1Window-members.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::Window Member List
-
-
- -

This is the complete list of members for yage::Window, including all inherited members.

- - - - - - -
clearBuffer() (defined in yage::Window)yage::Window
create(const std::string &window_name, int width, int height, unsigned flags=WindowFlags::SHOWN) (defined in yage::Window)yage::Window
swapBuffer() (defined in yage::Window)yage::Window
Window() (defined in yage::Window)yage::Window
~Window() (defined in yage::Window)yage::Window
- - - - diff --git a/classyage_1_1Window.html b/classyage_1_1Window.html deleted file mode 100644 index 75cd924a..00000000 --- a/classyage_1_1Window.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - -YAGE: yage::Window Class Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::Window Class Reference
-
-
- - - - - - - - -

-Public Member Functions

-void create (const std::string &window_name, int width, int height, unsigned flags=WindowFlags::SHOWN)
 
-void swapBuffer ()
 
-void clearBuffer ()
 
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1detail_1_1Row-members.html b/classyage_1_1detail_1_1Row-members.html deleted file mode 100644 index 11a58699..00000000 --- a/classyage_1_1detail_1_1Row-members.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::detail::Row< Rows, Cols, Type > Member List
-
-
- -

This is the complete list of members for yage::detail::Row< Rows, Cols, Type >, including all inherited members.

- - - - -
operator[](int col) (defined in yage::detail::Row< Rows, Cols, Type >)yage::detail::Row< Rows, Cols, Type >inline
operator[](int col) const (defined in yage::detail::Row< Rows, Cols, Type >)yage::detail::Row< Rows, Cols, Type >inline
Row(Matrix< Rows, Cols, Type > *parent, int index) (defined in yage::detail::Row< Rows, Cols, Type >)yage::detail::Row< Rows, Cols, Type >inline
- - - - diff --git a/classyage_1_1detail_1_1Row.html b/classyage_1_1detail_1_1Row.html deleted file mode 100644 index dae8b956..00000000 --- a/classyage_1_1detail_1_1Row.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - -YAGE: yage::detail::Row< Rows, Cols, Type > Class Template Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::detail::Row< Rows, Cols, Type > Class Template Reference
-
-
- - - - - - - - -

-Public Member Functions

Row (Matrix< Rows, Cols, Type > *parent, int index)
 
-Type & operator[] (int col)
 
-const Type & operator[] (int col) const
 
-
The documentation for this class was generated from the following file: -
- - - - diff --git a/collider_8hpp_source.html b/collider_8hpp_source.html index 7dfb2ddb..c581a49e 100644 --- a/collider_8hpp_source.html +++ b/collider_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,12 +68,11 @@ $(function() {
collider.hpp
-
1 /* ----------------------------------------------------------------------------
2  * collider.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 YAGE_COLLIDER_HPP
10 #define YAGE_COLLIDER_HPP
11 
12 #include <glm/glm.hpp>
13 
14 namespace yage
15 {
16 
17 // The Collider class helps collision detection by providing a general shape
18 // for different shapes to have their own collision algorithms.
19 class Collider
20 {
21 protected:
22  // position of the object
23  glm::vec2 position_;
24 
25  // size of the object
26  glm::vec2 size_;
27 
28 public:
29  Collider(const glm::vec2 &position, const glm::vec2 &size) : position_(position), size_(size) {}
30 
31  // virtual deconstructor for classes that inherits
32  virtual ~Collider() {}
33 
34  // function that checks if two colliders are colliding
35  virtual bool collides(const Collider &collider) const=0;
36 
37  // function that returns if a point is inside the shape
38  virtual bool inside(const glm::vec2 &point) const=0;
39 };
40 
41 } // yage
42 
43 #endif
Definition: collider.hpp:19
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * collider.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 YAGE_COLLIDER_HPP
10 #define YAGE_COLLIDER_HPP
11 
12 #include <glm/glm.hpp>
13 
14 namespace yage
15 {
16 
17 // The Collider class helps collision detection by providing a general shape
18 // for different shapes to have their own collision algorithms.
19 class Collider
20 {
21 protected:
22  // position of the object
23  glm::vec2 position_;
24 
25  // size of the object
26  glm::vec2 size_;
27 
28 public:
29  Collider(const glm::vec2 &position, const glm::vec2 &size) : position_(position), size_(size) {}
30 
31  // virtual deconstructor for classes that inherits
32  virtual ~Collider() {}
33 
34  // function that checks if two colliders are colliding
35  virtual bool collides(const Collider &collider) const=0;
36 
37  // function that returns if a point is inside the shape
38  virtual bool inside(const glm::vec2 &point) const=0;
39 };
40 
41 } // yage
42 
43 #endif
Definition: camera2d.hpp:17
diff --git a/collisionbody_8hpp_source.html b/collisionbody_8hpp_source.html index 7706914e..bfc9e1b2 100644 --- a/collisionbody_8hpp_source.html +++ b/collisionbody_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,13 +68,11 @@ $(function() {
collisionbody.hpp
-
1 /* ----------------------------------------------------------------------------
2  * collisionbody.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 YAGE_COLLISION_BODY_HPP
10 #define YAGE_COLLISION_BODY_HPP
11 
12 #include "Physics/body.hpp"
13 
14 namespace yage
15 {
16 
17 // a collision body will be a body that is static and not affected by gravity,
18 // with infinite mass
19 class CollisionBody : public Body
20 {
21 public:
22  CollisionBody();
23  virtual ~CollisionBody();
24 };
25 
26 } // yage
27 
28 #endif
Definition: body.hpp:17
-
Definition: collisionbody.hpp:19
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * collisionbody.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 YAGE_COLLISION_BODY_HPP
10 #define YAGE_COLLISION_BODY_HPP
11 
12 #include "Physics/body.hpp"
13 
14 namespace yage
15 {
16 
17 // a collision body will be a body that is static and not affected by gravity,
18 // with infinite mass
19 class CollisionBody : public Body
20 {
21 public:
22  CollisionBody();
23  virtual ~CollisionBody();
24 };
25 
26 } // yage
27 
28 #endif
Definition: camera2d.hpp:17
diff --git a/dir_5ac3a90c14a160db9539610948ce4998.html b/dir_5ac3a90c14a160db9539610948ce4998.html index 9e4e2ab8..a32ecc54 100644 --- a/dir_5ac3a90c14a160db9539610948ce4998.html +++ b/dir_5ac3a90c14a160db9539610948ce4998.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -77,7 +78,7 @@ Files
diff --git a/dir_68267d1309a1af8e8297ef4c3efbcdba.html b/dir_68267d1309a1af8e8297ef4c3efbcdba.html index f8d37264..7795c7ac 100644 --- a/dir_68267d1309a1af8e8297ef4c3efbcdba.html +++ b/dir_68267d1309a1af8e8297ef4c3efbcdba.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -70,7 +71,7 @@ $(function() { diff --git a/dir_b233a2caca2b45d5ef987dbbf49782d0.html b/dir_b233a2caca2b45d5ef987dbbf49782d0.html index 0eff5f63..190e18f0 100644 --- a/dir_b233a2caca2b45d5ef987dbbf49782d0.html +++ b/dir_b233a2caca2b45d5ef987dbbf49782d0.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -70,7 +71,7 @@ $(function() { diff --git a/dir_d44c64559bbebec7f509842c48db8b23.html b/dir_d44c64559bbebec7f509842c48db8b23.html index d6c6989c..c0b51da2 100644 --- a/dir_d44c64559bbebec7f509842c48db8b23.html +++ b/dir_d44c64559bbebec7f509842c48db8b23.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -74,7 +75,7 @@ Directories diff --git a/dir_f562165b51c585c003877be645f219b5.html b/dir_f562165b51c585c003877be645f219b5.html index f420d857..9e4adb80 100644 --- a/dir_f562165b51c585c003877be645f219b5.html +++ b/dir_f562165b51c585c003877be645f219b5.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -74,7 +75,7 @@ Directories diff --git a/files.html b/files.html index 632cf563..9c4ab1c5 100644 --- a/files.html +++ b/files.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -97,7 +98,7 @@ $(function() { diff --git a/functions.html b/functions.html new file mode 100644 index 00000000..9e51d230 --- /dev/null +++ b/functions.html @@ -0,0 +1,88 @@ + + + + + + + +YAGE: Class Members + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  0.02 +
+
Yet Another Game Engine
+
+
+ + + + + + + +
+ +
+
+ + +
+ +
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+
+ + + + diff --git a/functions_func.html b/functions_func.html new file mode 100644 index 00000000..89cd31b6 --- /dev/null +++ b/functions_func.html @@ -0,0 +1,85 @@ + + + + + + + +YAGE: Class Members - Functions + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  0.02 +
+
Yet Another Game Engine
+
+
+ + + + + + + +
+ +
+
+ + +
+ +
+ +
+
+ + + + diff --git a/functions_vars.html b/functions_vars.html new file mode 100644 index 00000000..e12c3895 --- /dev/null +++ b/functions_vars.html @@ -0,0 +1,76 @@ + + + + + + + +YAGE: Class Members - Variables + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  0.02 +
+
Yet Another Game Engine
+
+
+ + + + + + + +
+ +
+
+ + +
+ +
+ +
+
+ + + + diff --git a/glslprogram_8hpp_source.html b/glslprogram_8hpp_source.html index 76206cb1..8881e330 100644 --- a/glslprogram_8hpp_source.html +++ b/glslprogram_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,12 +68,11 @@ $(function() {
glslprogram.hpp
-
1 /* ----------------------------------------------------------------------------
2  * glslprogram.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 GLSL_PROGRAM_HPP
10 #define GLSL_PROGRAM_HPP
11 
12 #include <GL/glew.h>
13 
14 #include <string>
15 
16 namespace yage
17 {
18 
20 {
21 private:
22  // compiled shader program id
23  GLuint program_id_ = 0;
24  GLuint vertex_shader_id_ = 0;
25  GLuint fragment_shader_id_ = 0;
26  int attribute_index_ = 0;
27 
28  // compiles one shader
29  void compileShader(const GLuint &shader, const std::string &file_path);
30 public:
31  GlslProgram();
32  ~GlslProgram();
33 
34  // compiles vertex and fragment shader
35  void compileShaders(const std::string &vertex_shader_path, const std::string &fragment_shader_path);
36  void linkShaders();
37  void addAttribute(const std::string &attribute_name);
38  GLint getUniformLocation(const std::string &uniform_name);
39  void use();
40  void unuse();
41 };
42 
43 } // yage
44 
45 #endif
Definition: glslprogram.hpp:19
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * glslprogram.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 GLSL_PROGRAM_HPP
10 #define GLSL_PROGRAM_HPP
11 
12 #include <GL/glew.h>
13 
14 #include <string>
15 
16 namespace yage
17 {
18 
19 class GlslProgram
20 {
21 private:
22  // compiled shader program id
23  GLuint program_id_ = 0;
24  GLuint vertex_shader_id_ = 0;
25  GLuint fragment_shader_id_ = 0;
26  int attribute_index_ = 0;
27 
28  // compiles one shader
29  void compileShader(const GLuint &shader, const std::string &file_path);
30 public:
31  GlslProgram();
32  ~GlslProgram();
33 
34  // compiles vertex and fragment shader
35  void compileShaders(const std::string &vertex_shader_path, const std::string &fragment_shader_path);
36  void linkShaders();
37  void addAttribute(const std::string &attribute_name);
38  GLint getUniformLocation(const std::string &uniform_name);
39  void use();
40  void unuse();
41 };
42 
43 } // yage
44 
45 #endif
Definition: camera2d.hpp:17
diff --git a/hierarchy.html b/hierarchy.html index cdbf2c5d..604b936a 100644 --- a/hierarchy.html +++ b/hierarchy.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -64,45 +65,18 @@ $(function() {
This inheritance list is sorted roughly, but not completely, alphabetically:
diff --git a/imageloader_8hpp_source.html b/imageloader_8hpp_source.html index 936a76a7..7b960912 100644 --- a/imageloader_8hpp_source.html +++ b/imageloader_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,13 +68,11 @@ $(function() {
imageloader.hpp
-
1 /* ----------------------------------------------------------------------------
2  * imageloader.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 IMAGE_LOADER_HPP
10 #define IMAGE_LOADER_HPP
11 
12 #include "texture.hpp"
13 
14 #include <string>
15 
16 namespace yage
17 {
18 
20 {
21 public:
22  static Texture loadPng(const std::string &file_path);
23 };
24 
25 } // yage
26 
27 #endif
Definition: imageloader.hpp:19
-
Definition: texture.hpp:17
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * imageloader.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 IMAGE_LOADER_HPP
10 #define IMAGE_LOADER_HPP
11 
12 #include "texture.hpp"
13 
14 #include <string>
15 
16 namespace yage
17 {
18 
19 class ImageLoader
20 {
21 public:
22  static Texture loadPng(const std::string &file_path);
23 };
24 
25 } // yage
26 
27 #endif
Definition: camera2d.hpp:17
diff --git a/index.html b/index.html index 2dde1fcf..c9c9c768 100644 --- a/index.html +++ b/index.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -66,7 +67,7 @@ $(function() {
diff --git a/inputmanager_8hpp_source.html b/inputmanager_8hpp_source.html index 8e125d76..37a82e02 100644 --- a/inputmanager_8hpp_source.html +++ b/inputmanager_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,12 +68,11 @@ $(function() {
inputmanager.hpp
-
1 /* ----------------------------------------------------------------------------
2  * inputmanager.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 INPUT_MANAGER_HPP
10 #define INPUT_MANAGER_HPP
11 
12 #include <unordered_map>
13 
14 namespace yage
15 {
16 
18 {
19 private:
20  std::unordered_map<unsigned, bool> key_map_;
21 
22 public:
23  void keyPressed(unsigned key);
24  void keyReleased(unsigned key);
25  bool isKeyPressed(unsigned key) const;
26 };
27 
28 }
29 #endif
Definition: inputmanager.hpp:17
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * inputmanager.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 INPUT_MANAGER_HPP
10 #define INPUT_MANAGER_HPP
11 
12 #include <unordered_map>
13 
14 namespace yage
15 {
16 
17 class InputManager
18 {
19 private:
20  std::unordered_map<unsigned, bool> key_map_;
21 
22 public:
23  void keyPressed(unsigned key);
24  void keyReleased(unsigned key);
25  bool isKeyPressed(unsigned key) const;
26 };
27 
28 }
29 #endif
Definition: camera2d.hpp:17
diff --git a/iomanager_8hpp_source.html b/iomanager_8hpp_source.html index 0e026024..1b13dedf 100644 --- a/iomanager_8hpp_source.html +++ b/iomanager_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,12 +68,11 @@ $(function() {
iomanager.hpp
-
1 /* ----------------------------------------------------------------------------
2  * iomanager.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 IO_MANAGER_HPP
10 #define IO_MANAGER_HPP
11 
12 #include <string>
13 #include <vector>
14 
15 namespace yage
16 {
17 
18 class IoManager
19 {
20 public:
21  static bool readFileToBuffer(const std::string &file_path, std::vector<unsigned char> &buffer);
22 };
23 
24 } // yage
25 
26 #endif
Definition: iomanager.hpp:18
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * iomanager.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 IO_MANAGER_HPP
10 #define IO_MANAGER_HPP
11 
12 #include <string>
13 #include <vector>
14 
15 namespace yage
16 {
17 
18 class IoManager
19 {
20 public:
21  static bool readFileToBuffer(const std::string &file_path, std::vector<unsigned char> &buffer);
22 };
23 
24 } // yage
25 
26 #endif
Definition: camera2d.hpp:17
diff --git a/math_8hpp_source.html b/math_8hpp_source.html index 255cdbda..a9d9a2dc 100644 --- a/math_8hpp_source.html +++ b/math_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -71,7 +72,7 @@ $(function() {
diff --git a/matrix_8hpp.html b/matrix_8hpp.html index dd32e129..b4261d56 100644 --- a/matrix_8hpp.html +++ b/matrix_8hpp.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -87,87 +88,41 @@ $(function() {

Classes

class  yage::Matrix< Rows, Cols, Type > - Base matrix class. More...
-  -class  yage::detail::Row< Rows, Cols, Type > + Base Matrix class used by other similar classes. More...
  class  yage::Matrix< Rows, Cols, Type > - Base matrix class. More...
-  -class  yage::Vector< Rows, Type > + Base Matrix class used by other similar classes. More...
  class  yage::Vector2< Type > + 2D Vector class. More...
  - - + +

Namespaces

 detail
 Detail namespace.
 yage::matrix
 Namespace containing functions that operate on matrices.
 
+typedef Vector2< double >  +

Typedefs

-typedef Vector2< double > yage::Vector2d
yage::Vector2d
 Definition of a 2D vector.
 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + + + - - + + +

Functions

-template<int M, int N, class T >
Matrix< M, N, T > yage::operator+ (Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
 
-template<int M, int N, class T >
Matrix< M, N, T > yage::operator- (Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
 
-template<int M, int N, class T >
Matrix< M, N, T > yage::operator+ (Matrix< M, N, T > lhs, const T &rhs)
 
-template<int M, int N, class T >
Matrix< M, N, T > yage::operator+ (const T &lhs, Matrix< M, N, T > rhs)
 
-template<int M, int N, class T >
Matrix< M, N, T > yage::operator- (Matrix< M, N, T > lhs, const T &rhs)
 
-template<int M, int N, class T >
Matrix< M, N, T > yage::operator- (const T &lhs, Matrix< M, N, T > rhs)
 
-template<int M, int N, class T >
Matrix< M, N, T > yage::operator* (Matrix< M, N, T > lhs, const T &rhs)
 
-template<int M, int N, class T >
Matrix< M, N, T > yage::operator* (const T &lhs, Matrix< M, N, T > rhs)
 
-template<int M, int N, class T >
Matrix< M, N, T > yage::operator/ (Matrix< M, N, T > lhs, const T &rhs)
 
-template<int M, int N, class T >
bool yage::operator== (const Matrix< M, N, T > &lhs, const Matrix< M, N, T > &rhs)
 
-template<int M, int N, class T >
std::ostream & yage::operator<< (std::ostream &os, const Matrix< M, N, T > &mat)
 
-template<int M, int N, class T >
Matrix< N, M, T > yage::matrix::transpose (const Matrix< M, N, T > &m)
template<int M, int N, class T >
Matrix< N, M, T > yage::matrix::transpose (const Matrix< M, N, T > &m)
 Transposes a matrix and returns the result. More...
 
-template<int R, class T >
yage::matrix::dot (const Matrix< R, 1, T > &m1, const Matrix< R, 1, T > &m2)
template<int R, class T >
yage::matrix::dot (const Matrix< R, 1, T > &m1, const Matrix< R, 1, T > &m2)
 Returns the dot product between two vectors. More...
 
-template<int M, int N, int P, int Q, class T >
Matrix< M, Q, T > yage::matrix::multiply (const Matrix< M, N, T > &m1, const Matrix< P, Q, T > &m2)
template<int M, int N, int P, int Q, class T >
Matrix< M, Q, T > yage::matrix::multiply (const Matrix< M, N, T > &m1, const Matrix< P, Q, T > &m2)
 Multiplies two matrices together. More...
 

Detailed Description

@@ -177,7 +132,7 @@ template<int M, int N, int P, int Q, class T > diff --git a/matrix_8hpp_source.html b/matrix_8hpp_source.html index ea7481a9..c7e90006 100644 --- a/matrix_8hpp_source.html +++ b/matrix_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,16 +68,20 @@ $(function() {
matrix.hpp
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * matrix.hpp
3  *
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5  * See file LICENSE for more details
6  * ----------------------------------------------------------------------------
7  */
8 
20 #ifndef YAGE_MATH_MATRIX_HPP
21 #define YAGE_MATH_MATRIX_HPP
22 
23 #include <algorithm>
24 #include <exception>
25 #include <iostream>
26 #include <sstream>
27 #include <string>
28 #include <vector>
29 
30 namespace yage
31 {
32 
33 template<int Rows, int Cols, class Type> class Matrix;
34 
43 namespace detail
44 {
45 
46 template<int Rows, int Cols, class Type> class Row
47 {
48 private:
49  Matrix<Rows, Cols, Type> *parent_;
50  int index_;
51 
52 public:
54  parent_(parent), index_(index)
55  {}
56 
57  Type& operator[](int col)
58  {
59  // the index is the y-position of the element in the matrix
60  return parent_->data_[index_*Cols+col];
61  }
62 
63  const Type& operator[](int col) const
64  {
65  return parent_->data_[index_*Cols+col];
66  }
67 };
68 
69 } // detail
70 
80 template<int Rows=4, int Cols=4, class Type=double> class Matrix
81 {
82  // friended with the row class so that it can access protected member data
83  friend class detail::Row<Rows, Cols, Type>;
84 protected:
85  std::vector<Type> data_;
86 
87 public:
88  Matrix<Rows, Cols, Type>() : data_(Rows*Cols) {}
89 
90  int rowSize() const
91  {
92  return Rows;
93  }
94 
95  int colSize() const
96  {
97  return Cols;
98  }
99 
100  // returns the row in a row matrix
101  Matrix<1, Cols, Type> getRow(int row) const
102  {
103  Matrix<1, Cols, Type> rowMatrix;
104  for(int i=0; i<Cols; ++i)
105  {
106  rowMatrix[0][i]=data_[row][i];
107  }
108  return rowMatrix;
109  }
110 
111  // returns the column in a column matrix
112  Matrix<Rows, 1, Type> getCol(int col) const
113  {
114  Matrix<Rows, 1, Type> colMatrix;
115  for(int i=0; i<Rows; ++i)
116  {
117  colMatrix[i][0]=data_[i][col];
118  }
119  return colMatrix;
120  }
121 
122  // iterator support for begin
123  typename std::vector<Type>::iterator begin()
124  {
125  return data_.begin();
126  }
127 
128  // iterator support for end
129  typename std::vector<Type>::iterator end()
130  {
131  return data_.end();
132  }
133 
134  // prints out the matrix, but can also be implemented by other classes to print data
135  // differently
136  virtual std::string toString() const
137  {
138  std::stringstream ss;
139  ss<<'[';
140  for(int i=0; i<Rows-1; ++i)
141  {
142  ss<<'[';
143  for(int j=0; j<Cols-1; ++j)
144  {
145  ss<<data_[i*Cols+j]<<' ';
146  }
147  ss<<data_[(Rows-1)*Cols+Cols-1]<<"],";
148  }
149  ss<<'[';
150  for(int j=0; j<Cols-1; ++j)
151  {
152  ss<<data_[(Rows-1)*Cols+j]<<' ';
153  }
154  ss<<data_[(Rows-1)*Cols+Cols-1]<<"]]";
155  return ss.str();
156  }
157 
158  detail::Row<Rows, Cols, Type> operator[](int row)
159  {
160  return detail::Row<Rows, Cols, Type>(this, row);
161  }
162 
163  detail::Row<Rows, Cols, Type> operator[](int row) const
164  {
165  // TODO got to fix this
167  }
168 
169  Matrix<Rows, Cols, Type>& operator=(const Matrix<Rows, Cols, Type> &other)
170  {
171  if(this!=&other)
172  {
173  data_=other.data_;
174  }
175  return *this;
176  }
177 
178  Matrix<Rows, Cols, Type>& operator+=(const Matrix<Rows, Cols, Type> &rhs)
179  {
180  std::vector<Type> out;
181  out.reserve(data_.size());
182  std::transform(data_.begin(), data_.end(), rhs.data_.begin(), std::back_inserter(out),
183  [] (Type a, Type b) {
184  return a+b;
185  });
186  data_=std::move(out);
187  return *this;
188  }
189 
190  Matrix<Rows, Cols, Type>& operator-=(const Matrix<Rows, Cols, Type> &rhs)
191  {
192  std::vector<Type> out;
193  out.reserve(data_.size());
194  std::transform(data_.begin(), data_.end(), rhs.begin(), std::back_inserter(out),
195  [] (Type a, Type b) {
196  return a-b;
197  });
198  data_=std::move(out);
199  return *this;
200  }
201 };
202 
203 template<int M, int N, class T>
204 Matrix<M, N, T> operator+(Matrix<M, N, T> lhs, const Matrix<M, N, T> &rhs)
205 {
206  lhs+=rhs;
207  return lhs;
208 }
209 
210 template<int M, int N, class T>
211 Matrix<M, N, T> operator-(Matrix<M, N, T> lhs, const Matrix<M, N, T> &rhs)
212 {
213  lhs-=rhs;
214  return lhs;
215 }
216 
217 template<int M, int N, class T>
218 Matrix<M, N, T> operator+(Matrix<M, N, T> lhs, const T &rhs)
219 {
220  for(auto &data : lhs)
221  {
222  data+=rhs;
223  }
224  return lhs;
225 }
226 
227 template<int M, int N, class T>
228 Matrix<M, N, T> operator+(const T &lhs, Matrix<M, N, T> rhs)
229 {
230  for(auto &data : rhs)
231  {
232  data+=lhs;
233  }
234  return rhs;
235 }
236 
237 template<int M, int N, class T>
238 Matrix<M, N, T> operator-(Matrix<M, N, T> lhs, const T &rhs)
239 {
240  for(auto &data : lhs)
241  {
242  data-=rhs;
243  }
244  return lhs;
245 }
246 
247 template<int M, int N, class T>
248 Matrix<M, N, T> operator-(const T &lhs, Matrix<M, N, T> rhs)
249 {
250  for(auto &data : rhs)
251  {
252  data=lhs-data;
253  }
254  return rhs;
255 }
256 
257 template<int M, int N, class T>
258 Matrix<M, N, T> operator*(Matrix<M, N, T> lhs, const T &rhs)
259 {
260  for(auto &data : lhs)
261  {
262  data*=rhs;
263  }
264  return lhs;
265 }
266 
267 template<int M, int N, class T>
268 Matrix<M, N, T> operator*(const T &lhs, Matrix<M, N, T> rhs)
269 {
270  for(auto &data : rhs)
271  {
272  data*=lhs;
273  }
274  return rhs;
275 }
276 
277 template<int M, int N, class T>
278 Matrix<M, N, T> operator/(Matrix<M, N, T> lhs, const T &rhs)
279 {
280  for(auto &data : lhs)
281  {
282  data/=rhs;
283  }
284  return lhs;
285 }
286 
287 template<int M, int N, class T>
288 bool operator==(const Matrix<M, N, T> &lhs, const Matrix<M, N, T> &rhs)
289 {
290  for(int i=0; i<M; ++i)
291  for(int j=0; j<N; ++j)
292  if(lhs[i][j]!=rhs[i][j])
293  return false;
294  return true;
295 }
296 
297 template<int M, int N, class T>
298 std::ostream& operator<<(std::ostream &os, const Matrix<M, N, T> &mat)
299 {
300  return os<<mat.toString();
301 }
302 
303 template<int Rows=2, class Type=double> class Vector : public Matrix<Rows, 1, Type>
304 {
305 public:
307  explicit Vector<Rows, Type>(const Matrix<Rows, 1, Type> &other) : Matrix<Rows, 1, Type>(other) {}
308 
309  Type& operator[](int col)
310  {
311  return this->data_[col];
312  }
313 
314  const Type& operator[](int col) const
315  {
316  return this->data_[col];
317  }
318 
319  virtual std::string toString() const
320  {
321  std::stringstream ss;
322  ss<<"[";
323  for(std::size_t i=0; i<this->data_.size()-1; ++i)
324  {
325  ss<<this->data_[i]<<" ";
326  }
327  ss<<this->data_[this->data_.size()-1]<<"]";
328  return ss.str();
329  }
330 };
331 
332 template<class Type=double> class Vector2 : public Vector<2, Type>
333 {
334 public:
336 
337  Vector2<Type>(Type x, Type y)
338  {
339  this->data_[0]=x;
340  this->data_[1]=y;
341  }
342 
343  Vector2<Type>(const Matrix<2, 1, Type> &other) : Vector<2, Type>(other) {}
344 
345  Type& x()
346  {
347  return this->data_[0];
348  }
349 
350  const Type& x() const
351  {
352  return this->data_[0];
353  }
354 
355  Type& y()
356  {
357  return this->data_[1];
358  }
359 
360  const Type& y() const
361  {
362  return this->data_[1];
363  }
364 };
365 
366 typedef Vector2<double> Vector2d;
367 
368 namespace matrix
369 {
370 
371 template<int M, int N, class T> Matrix<N, M, T> transpose(const Matrix<M, N, T> &m)
372 {
373  Matrix<N, M, T> trans;
374  for(int i=0; i<M; ++i)
375  {
376  for(int j=0; j<N; ++j)
377  {
378  trans[j][i]=m[i][j];
379  }
380  }
381  return trans;
382 }
383 
384 template<int R, class T> T dot(const Matrix<R, 1, T> &m1, const Matrix<R, 1, T> &m2)
385 {
386  T sum=0;
387  for(int i=0; i<R; ++i)
388  {
389  sum += m1[i][0]*m2[i][0];
390  }
391  return sum;
392 }
393 
394 template<int M, int N, int P, int Q, class T>
395 Matrix<M, Q, T> multiply(const Matrix<M, N, T> &m1, const Matrix<P, Q, T> &m2)
396 {
397  if(N!=P)
398  {
399  throw std::runtime_error("Matrices don't have the right dimensions for multiplication");
400  }
401 
402  Matrix<M, Q, T> res;
403 
404  for(int i=0; i<M; ++i)
405  {
406  for(int j=0; j<Q; ++j)
407  {
408  res[i][j] = dot(transpose(m1.getRow(i)), m2.getCol(j));
409  }
410  }
411 
412  return res;
413 }
414 
415 } // matrix
416 
417 } // yage
418 
419 #endif
Definition: matrix.hpp:332
-
Detail namespace.
Definition: matrix.hpp:33
-
Definition: matrix.hpp:46
-
Definition: matrix.hpp:303
-
Base matrix class.
Definition: matrix.hpp:33
+Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * matrix.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 
21 #ifndef YAGE_MATH_MATRIX_HPP
22 #define YAGE_MATH_MATRIX_HPP
23 
24 #include <algorithm>
25 #include <exception>
26 #include <iostream>
27 #include <sstream>
28 #include <string>
29 #include <vector>
30 
31 
32 namespace yage
33 {
34 
35 template<int Rows, int Cols, class Type> class Matrix;
36 
44 namespace detail
45 {
46 
55 template<int Rows, int Cols, class Type> class Row
56 {
57 private:
58  Matrix<Rows, Cols, Type> *parent_;
59  int index_;
60 
61 public:
62  Row<Rows, Cols, Type>(Matrix<Rows, Cols, Type> *parent, int index) :
63  parent_(parent), index_(index)
64  {}
65 
66  Type& operator[](int col)
67  {
68  // the index is the y-position of the element in the matrix
69  return parent_->data_[index_*Cols+col];
70  }
71 
72  const Type& operator[](int col) const
73  {
74  return parent_->data_[index_*Cols+col];
75  }
76 };
77 
78 } // detail
79 
88 template<int Rows=4, int Cols=4, class Type=double> class Matrix
89 {
90  // friended with the row class so that it can access protected member data
91  friend class detail::Row<Rows, Cols, Type>;
92 protected:
94  std::vector<Type> data_;
95 
96 public:
98  Matrix<Rows, Cols, Type>() : data_(Rows*Cols) {}
99 
101  int rowSize() const
102  {
103  return Rows;
104  }
105 
107  int colSize() const
108  {
109  return Cols;
110  }
111 
119  {
120  Matrix<1, Cols, Type> rowMatrix;
121  for(int i=0; i<Cols; ++i)
122  {
123  rowMatrix[0][i]=data_[row][i];
124  }
125  return rowMatrix;
126  }
127 
128  // returns the column in a column matrix
129  Matrix<Rows, 1, Type> getCol(int col) const
130  {
131  Matrix<Rows, 1, Type> colMatrix;
132  for(int i=0; i<Rows; ++i)
133  {
134  colMatrix[i][0]=data_[i][col];
135  }
136  return colMatrix;
137  }
138 
139  // iterator support for begin
140  typename std::vector<Type>::iterator begin()
141  {
142  return data_.begin();
143  }
144 
145  // iterator support for end
146  typename std::vector<Type>::iterator end()
147  {
148  return data_.end();
149  }
150 
151  // prints out the matrix, but can also be implemented by other classes to print data
152  // differently
153  virtual std::string toString() const
154  {
155  std::stringstream ss;
156  ss<<'[';
157  for(int i=0; i<Rows-1; ++i)
158  {
159  ss<<'[';
160  for(int j=0; j<Cols-1; ++j)
161  {
162  ss<<data_[i*Cols+j]<<' ';
163  }
164  ss<<data_[(Rows-1)*Cols+Cols-1]<<"],";
165  }
166  ss<<'[';
167  for(int j=0; j<Cols-1; ++j)
168  {
169  ss<<data_[(Rows-1)*Cols+j]<<' ';
170  }
171  ss<<data_[(Rows-1)*Cols+Cols-1]<<"]]";
172  return ss.str();
173  }
174 
175  detail::Row<Rows, Cols, Type> operator[](int row)
176  {
177  return detail::Row<Rows, Cols, Type>(this, row);
178  }
179 
180  detail::Row<Rows, Cols, Type> operator[](int row) const
181  {
182  // TODO got to fix this
183  return detail::Row<Rows, Cols, Type>((Matrix<Rows, Cols, Type>*)this, row);
184  }
185 
186  Matrix<Rows, Cols, Type>& operator=(const Matrix<Rows, Cols, Type> &other)
187  {
188  if(this!=&other)
189  {
190  data_=other.data_;
191  }
192  return *this;
193  }
194 
195  Matrix<Rows, Cols, Type>& operator+=(const Matrix<Rows, Cols, Type> &rhs)
196  {
197  std::vector<Type> out;
198  out.reserve(data_.size());
199  std::transform(data_.begin(), data_.end(), rhs.data_.begin(), std::back_inserter(out),
200  [] (Type a, Type b) {
201  return a+b;
202  });
203  data_=std::move(out);
204  return *this;
205  }
206 
207  Matrix<Rows, Cols, Type>& operator-=(const Matrix<Rows, Cols, Type> &rhs)
208  {
209  std::vector<Type> out;
210  out.reserve(data_.size());
211  std::transform(data_.begin(), data_.end(), rhs.begin(), std::back_inserter(out),
212  [] (Type a, Type b) {
213  return a-b;
214  });
215  data_=std::move(out);
216  return *this;
217  }
218 };
219 
220 template<int M, int N, class T>
221 Matrix<M, N, T> operator+(Matrix<M, N, T> lhs, const Matrix<M, N, T> &rhs)
222 {
223  lhs+=rhs;
224  return lhs;
225 }
226 
227 template<int M, int N, class T>
228 Matrix<M, N, T> operator-(Matrix<M, N, T> lhs, const Matrix<M, N, T> &rhs)
229 {
230  lhs-=rhs;
231  return lhs;
232 }
233 
234 template<int M, int N, class T>
235 Matrix<M, N, T> operator+(Matrix<M, N, T> lhs, const T &rhs)
236 {
237  for(auto &data : lhs)
238  {
239  data+=rhs;
240  }
241  return lhs;
242 }
243 
244 template<int M, int N, class T>
245 Matrix<M, N, T> operator+(const T &lhs, Matrix<M, N, T> rhs)
246 {
247  for(auto &data : rhs)
248  {
249  data+=lhs;
250  }
251  return rhs;
252 }
253 
254 template<int M, int N, class T>
255 Matrix<M, N, T> operator-(Matrix<M, N, T> lhs, const T &rhs)
256 {
257  for(auto &data : lhs)
258  {
259  data-=rhs;
260  }
261  return lhs;
262 }
263 
264 template<int M, int N, class T>
265 Matrix<M, N, T> operator-(const T &lhs, Matrix<M, N, T> rhs)
266 {
267  for(auto &data : rhs)
268  {
269  data=lhs-data;
270  }
271  return rhs;
272 }
273 
274 template<int M, int N, class T>
275 Matrix<M, N, T> operator*(Matrix<M, N, T> lhs, const T &rhs)
276 {
277  for(auto &data : lhs)
278  {
279  data*=rhs;
280  }
281  return lhs;
282 }
283 
284 template<int M, int N, class T>
285 Matrix<M, N, T> operator*(const T &lhs, Matrix<M, N, T> rhs)
286 {
287  for(auto &data : rhs)
288  {
289  data*=lhs;
290  }
291  return rhs;
292 }
293 
294 template<int M, int N, class T>
295 Matrix<M, N, T> operator/(Matrix<M, N, T> lhs, const T &rhs)
296 {
297  for(auto &data : lhs)
298  {
299  data/=rhs;
300  }
301  return lhs;
302 }
303 
304 template<int M, int N, class T>
305 bool operator==(const Matrix<M, N, T> &lhs, const Matrix<M, N, T> &rhs)
306 {
307  for(int i=0; i<M; ++i)
308  for(int j=0; j<N; ++j)
309  if(lhs[i][j]!=rhs[i][j])
310  return false;
311  return true;
312 }
313 
314 template<int M, int N, class T>
315 std::ostream& operator<<(std::ostream &os, const Matrix<M, N, T> &mat)
316 {
317  return os<<mat.toString();
318 }
319 
320 template<int Rows=2, class Type=double> class Vector : public Matrix<Rows, 1, Type>
321 {
322 public:
323  Vector<Rows, Type>() : Matrix<Rows, 1, Type>() {}
324  explicit Vector<Rows, Type>(const Matrix<Rows, 1, Type> &other) : Matrix<Rows, 1, Type>(other) {}
325 
326  Type& operator[](int col)
327  {
328  return this->data_[col];
329  }
330 
331  const Type& operator[](int col) const
332  {
333  return this->data_[col];
334  }
335 
336  virtual std::string toString() const
337  {
338  std::stringstream ss;
339  ss<<"[";
340  for(std::size_t i=0; i<this->data_.size()-1; ++i)
341  {
342  ss<<this->data_[i]<<" ";
343  }
344  ss<<this->data_[this->data_.size()-1]<<"]";
345  return ss.str();
346  }
347 };
348 
353 template<class Type=double> class Vector2 : public Vector<2, Type>
354 {
355 public:
356  Vector2<Type>() : Vector<2, Type>() {}
357 
358  Vector2<Type>(Type x, Type y)
359  {
360  this->data_[0]=x;
361  this->data_[1]=y;
362  }
363 
364  Vector2<Type>(const Matrix<2, 1, Type> &other) : Vector<2, Type>(other) {}
365 
366  Type& x()
367  {
368  return this->data_[0];
369  }
370 
371  const Type& x() const
372  {
373  return this->data_[0];
374  }
375 
376  Type& y()
377  {
378  return this->data_[1];
379  }
380 
381  const Type& y() const
382  {
383  return this->data_[1];
384  }
385 };
386 
389 
391 namespace matrix
392 {
393 
398 template<int M, int N, class T> Matrix<N, M, T> transpose(const Matrix<M, N, T> &m)
399 {
400  Matrix<N, M, T> trans;
401  for(int i=0; i<M; ++i)
402  {
403  for(int j=0; j<N; ++j)
404  {
405  trans[j][i]=m[i][j];
406  }
407  }
408  return trans;
409 }
410 
415 template<int R, class T> T dot(const Matrix<R, 1, T> &m1, const Matrix<R, 1, T> &m2)
416 {
417  T sum=0;
418  for(int i=0; i<R; ++i)
419  {
420  sum += m1[i][0]*m2[i][0];
421  }
422  return sum;
423 }
424 
431 template<int M, int N, int P, int Q, class T>
433 {
434  if(N!=P)
435  {
436  throw std::runtime_error("Matrices don't have the right dimensions for multiplication");
437  }
438 
439  Matrix<M, Q, T> res;
440 
441  for(int i=0; i<M; ++i)
442  {
443  for(int j=0; j<Q; ++j)
444  {
445  res[i][j] = dot(transpose(m1.getRow(i)), m2.getCol(j));
446  }
447  }
448 
449  return res;
450 }
451 
452 } // matrix
453 
454 } // yage
455 
456 #endif
int rowSize() const
Returns the row size of the Matrix.
Definition: matrix.hpp:101
+
int colSize() const
Returns the column size of the Matrixxs.
Definition: matrix.hpp:107
+
2D Vector class.
Definition: matrix.hpp:353
+
std::vector< Type > data_
Vector containing the data of the matrix.
Definition: matrix.hpp:94
+
Matrix< M, Q, T > multiply(const Matrix< M, N, T > &m1, const Matrix< P, Q, T > &m2)
Multiplies two matrices together.
Definition: matrix.hpp:432
+
Matrix< N, M, T > transpose(const Matrix< M, N, T > &m)
Transposes a matrix and returns the result.
Definition: matrix.hpp:398
+
Base Matrix class used by other similar classes.
Definition: matrix.hpp:35
+
T dot(const Matrix< R, 1, T > &m1, const Matrix< R, 1, T > &m2)
Returns the dot product between two vectors.
Definition: matrix.hpp:415
+
Matrix< 1, Cols, Type > getRow(int row) const
Return the row specified row as a Matrix with only one row.
Definition: matrix.hpp:118
Definition: camera2d.hpp:17
diff --git a/md_README.html b/md_README.html index 87d55e80..8e008864 100644 --- a/md_README.html +++ b/md_README.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -69,7 +70,7 @@ $(function() {
diff --git a/md_docs_README.html b/md_docs_README.html index 7aba4657..06546b36 100644 --- a/md_docs_README.html +++ b/md_docs_README.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,7 +68,7 @@ $(function() { diff --git a/menudata.js b/menudata.js index d11ea5ff..bc91e661 100644 --- a/menudata.js +++ b/menudata.js @@ -2,10 +2,17 @@ var menudata={children:[ {text:"Main Page",url:"index.html"}, {text:"Related Pages",url:"pages.html"}, {text:"Namespaces",url:"namespaces.html",children:[ -{text:"Namespace List",url:"namespaces.html"}]}, +{text:"Namespace List",url:"namespaces.html"}, +{text:"Namespace Members",url:"namespacemembers.html",children:[ +{text:"All",url:"namespacemembers.html"}, +{text:"Functions",url:"namespacemembers_func.html"}]}]}, {text:"Classes",url:"annotated.html",children:[ {text:"Class List",url:"annotated.html"}, {text:"Class Index",url:"classes.html"}, -{text:"Class Hierarchy",url:"hierarchy.html"}]}, +{text:"Class Hierarchy",url:"hierarchy.html"}, +{text:"Class Members",url:"functions.html",children:[ +{text:"All",url:"functions.html"}, +{text:"Functions",url:"functions_func.html"}, +{text:"Variables",url:"functions_vars.html"}]}]}, {text:"Files",url:"files.html",children:[ {text:"File List",url:"files.html"}]}]} diff --git a/namespacedetail.html b/namespacedetail.html deleted file mode 100644 index 47597df1..00000000 --- a/namespacedetail.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - -YAGE: detail Namespace Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- -
-
-
-
detail Namespace Reference
-
-
- -

Detail namespace. -More...

-

Detailed Description

-

Detail namespace.

-

Detail Namespace

-

This is the namespace used for implementation detail.

-
- - - - diff --git a/namespacemembers.html b/namespacemembers.html new file mode 100644 index 00000000..d4cb23f3 --- /dev/null +++ b/namespacemembers.html @@ -0,0 +1,82 @@ + + + + + + + +YAGE: Namespace Members + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  0.02 +
+
Yet Another Game Engine
+
+
+ + + + + + + +
+ +
+
+ + +
+ +
+ +
+
Here is a list of all documented namespace members with links to the namespaces they belong to:
+
+ + + + diff --git a/namespacemembers_func.html b/namespacemembers_func.html new file mode 100644 index 00000000..2b0f97a8 --- /dev/null +++ b/namespacemembers_func.html @@ -0,0 +1,82 @@ + + + + + + + +YAGE: Namespace Members + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  0.02 +
+
Yet Another Game Engine
+
+
+ + + + + + + +
+ +
+
+ + +
+ +
+ +
+
+ + + + diff --git a/namespaces.html b/namespaces.html index 97082812..d04e9ab4 100644 --- a/namespaces.html +++ b/namespaces.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -64,14 +65,15 @@ $(function() {
Here is a list of all documented namespaces with brief descriptions:
- - +
[detail level 12]
 NdetailDetail namespace
+ +
 Nyage
 NmatrixNamespace containing functions that operate on matrices
diff --git a/namespaceyage_1_1matrix.html b/namespaceyage_1_1matrix.html new file mode 100644 index 00000000..cbd0d138 --- /dev/null +++ b/namespaceyage_1_1matrix.html @@ -0,0 +1,208 @@ + + + + + + + +YAGE: yage::matrix Namespace Reference + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  0.02 +
+
Yet Another Game Engine
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+ +
+
yage::matrix Namespace Reference
+
+
+ +

Namespace containing functions that operate on matrices. +More...

+ + + + + + + + + + + + + + +

+Functions

template<int M, int N, class T >
Matrix< N, M, T > transpose (const Matrix< M, N, T > &m)
 Transposes a matrix and returns the result. More...
 
template<int R, class T >
dot (const Matrix< R, 1, T > &m1, const Matrix< R, 1, T > &m2)
 Returns the dot product between two vectors. More...
 
template<int M, int N, int P, int Q, class T >
Matrix< M, Q, T > multiply (const Matrix< M, N, T > &m1, const Matrix< P, Q, T > &m2)
 Multiplies two matrices together. More...
 
+

Detailed Description

+

Namespace containing functions that operate on matrices.

+

Function Documentation

+ +

◆ dot()

+ +
+
+
+template<int R, class T >
+ + + + + + + + + + + + + + + + + + +
T yage::matrix::dot (const Matrix< R, 1, T > & m1,
const Matrix< R, 1, T > & m2 
)
+
+ +

Returns the dot product between two vectors.

+
Parameters
+ + +
[in]m1,m2Input matrices.
+
+
+ +
+
+ +

◆ multiply()

+ +
+
+
+template<int M, int N, int P, int Q, class T >
+ + + + + + + + + + + + + + + + + + +
Matrix<M, Q, T> yage::matrix::multiply (const Matrix< M, N, T > & m1,
const Matrix< P, Q, T > & m2 
)
+
+ +

Multiplies two matrices together.

+
Parameters
+ + +
[in]m1,m2Matrix inputs
+
+
+

Requires the two matrices to be compatible with multiplication.

+ +
+
+ +

◆ transpose()

+ +
+
+
+template<int M, int N, class T >
+ + + + + + + + +
Matrix<N, M, T> yage::matrix::transpose (const Matrix< M, N, T > & m)
+
+ +

Transposes a matrix and returns the result.

+
Parameters
+ + +
[in]minput matrix.
+
+
+ +
+
+
+ + + + diff --git a/pages.html b/pages.html index 41187ae1..4d57f0a3 100644 --- a/pages.html +++ b/pages.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -72,7 +73,7 @@ $(function() { diff --git a/particlebody_8hpp_source.html b/particlebody_8hpp_source.html index 1b4af3dd..88696aae 100644 --- a/particlebody_8hpp_source.html +++ b/particlebody_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,15 +68,13 @@ $(function() {
particlebody.hpp
-
1 /* ----------------------------------------------------------------------------
2  * particlebody.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 YAGE_PARTICLE_BODY_HPP
10 #define YAGE_PARTICLE_BODY_HPP
11 
12 #include "Math/matrix.hpp"
13 
14 #include "body.hpp"
15 
16 namespace yage
17 {
18 
19 class ParticleBody : public Body
20 {
21 public:
22  ParticleBody(const Vector2d &position=Vector2d(0, 0),
23  double mass=1,
24  const Vector2d &velocity=Vector2d(0, 0),
25  bool gravity=true);
26 
27  // apply a force to the rigid body
28  virtual void applyForce(const Vector2d &force);
29  virtual void update();
30 };
31 
32 } // yage
33 
34 #endif
Templated matrix class.
- -
Definition: particlebody.hpp:19
-
Definition: body.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * particlebody.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 YAGE_PARTICLE_BODY_HPP
10 #define YAGE_PARTICLE_BODY_HPP
11 
12 #include "Math/matrix.hpp"
13 
14 #include "body.hpp"
15 
16 namespace yage
17 {
18 
19 class ParticleBody : public Body
20 {
21 public:
22  ParticleBody(const Vector2d &position=Vector2d(0, 0),
23  double mass=1,
24  const Vector2d &velocity=Vector2d(0, 0),
25  bool gravity=true);
26 
27  // apply a force to the rigid body
28  virtual void applyForce(const Vector2d &force);
29  virtual void update();
30 };
31 
32 } // yage
33 
34 #endif
Templated matrix class.
+
Vector2< double > Vector2d
Definition of a 2D vector.
Definition: matrix.hpp:388
Definition: camera2d.hpp:17
diff --git a/physics_8hpp_source.html b/physics_8hpp_source.html index f2a3d8f4..410cb8e0 100644 --- a/physics_8hpp_source.html +++ b/physics_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -70,7 +71,7 @@ $(function() {
1 /* ----------------------------------------------------------------------------
2  * physics.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 YAGE_PHYSICS_HPP
10 #define YAGE_PHYSICS_HPP
11 
12 #include "body.hpp"
13 #include "collider.hpp"
14 #include "collisionbody.hpp"
15 #include "particlebody.hpp"
16 #include "rectanglecollider.hpp"
17 #include "rigidbody.hpp"
18 
19 #endif
diff --git a/picopng_8hpp_source.html b/picopng_8hpp_source.html index 92e48e6d..501ffba6 100644 --- a/picopng_8hpp_source.html +++ b/picopng_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -71,7 +72,7 @@ $(function() { diff --git a/rectanglecollider_8hpp_source.html b/rectanglecollider_8hpp_source.html index ef771633..ce51dd60 100644 --- a/rectanglecollider_8hpp_source.html +++ b/rectanglecollider_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,13 +68,11 @@ $(function() {
rectanglecollider.hpp
-
1 /* ----------------------------------------------------------------------------
2  * rectanglecollider.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 YAGE_RECTANGLE_COLLIDER_HPP
10 #define YAGE_RECTANGLE_COLLIDER_HPP
11 
12 #include "Physics/collider.hpp"
13 
14 #include <glm/glm.hpp>
15 
16 namespace yage
17 {
18 
20 {
21 public:
22  RectangleCollider(const glm::vec2 &position, const glm::vec2 &size);
23 
24  virtual bool collides(const Collider &collider) const;
25  virtual bool inside(const glm::vec2 &point) const;
26 };
27 
28 } // yage
29 
30 #endif
Definition: rectanglecollider.hpp:19
-
Definition: collider.hpp:19
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * rectanglecollider.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 YAGE_RECTANGLE_COLLIDER_HPP
10 #define YAGE_RECTANGLE_COLLIDER_HPP
11 
12 #include "Physics/collider.hpp"
13 
14 #include <glm/glm.hpp>
15 
16 namespace yage
17 {
18 
19 class RectangleCollider : public Collider
20 {
21 public:
22  RectangleCollider(const glm::vec2 &position, const glm::vec2 &size);
23 
24  virtual bool collides(const Collider &collider) const;
25  virtual bool inside(const glm::vec2 &point) const;
26 };
27 
28 } // yage
29 
30 #endif
Definition: camera2d.hpp:17
diff --git a/resourcemanager_8hpp_source.html b/resourcemanager_8hpp_source.html index 3ae1ac86..b3432c45 100644 --- a/resourcemanager_8hpp_source.html +++ b/resourcemanager_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,14 +68,11 @@ $(function() {
resourcemanager.hpp
-
1 /* ----------------------------------------------------------------------------
2  * resourcemanager.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 RESOURCE_MANAGER_HPP
10 #define RESOURCE_MANAGER_HPP
11 
12 #include "texture.hpp"
13 #include "texturecache.hpp"
14 
15 #include <string>
16 
17 namespace yage
18 {
19 
21 {
22 private:
23  static TextureCache texture_cache_;
24 public:
25  static Texture getTexture(const std::string &texture_path);
26 };
27 
28 } // yage
29 
30 #endif
Definition: resourcemanager.hpp:20
-
Definition: texture.hpp:17
-
Definition: texturecache.hpp:19
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * resourcemanager.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 RESOURCE_MANAGER_HPP
10 #define RESOURCE_MANAGER_HPP
11 
12 #include "texture.hpp"
13 #include "texturecache.hpp"
14 
15 #include <string>
16 
17 namespace yage
18 {
19 
20 class ResourceManager
21 {
22 private:
23  static TextureCache texture_cache_;
24 public:
25  static Texture getTexture(const std::string &texture_path);
26 };
27 
28 } // yage
29 
30 #endif
Definition: camera2d.hpp:17
diff --git a/rigidbody_8hpp_source.html b/rigidbody_8hpp_source.html index dca867bc..0dcfadbd 100644 --- a/rigidbody_8hpp_source.html +++ b/rigidbody_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,14 +68,12 @@ $(function() {
rigidbody.hpp
-
1 /* ----------------------------------------------------------------------------
2  * rigidbody.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 YAGE_RIGID_BODY_HPP
10 #define YAGE_RIGID_BODY_HPP
11 
12 #include <glm/glm.hpp>
13 
14 #include "particlebody.hpp"
15 
16 namespace yage
17 {
18 
19 class RigidBody : public ParticleBody
20 {
21 public:
22  RigidBody(const Vector2d &position=Vector2d(0, 0),
23  double mass=1,
24  const Vector2d &velocity=Vector2d(0, 0),
25  bool gravity=true);
26 };
27 
28 } // yage
29 
30 #endif
-
Definition: particlebody.hpp:19
-
Definition: rigidbody.hpp:19
+
1 /* ----------------------------------------------------------------------------
2  * rigidbody.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 YAGE_RIGID_BODY_HPP
10 #define YAGE_RIGID_BODY_HPP
11 
12 #include <glm/glm.hpp>
13 
14 #include "particlebody.hpp"
15 
16 namespace yage
17 {
18 
19 class RigidBody : public ParticleBody
20 {
21 public:
22  RigidBody(const Vector2d &position=Vector2d(0, 0),
23  double mass=1,
24  const Vector2d &velocity=Vector2d(0, 0),
25  bool gravity=true);
26 };
27 
28 } // yage
29 
30 #endif
Vector2< double > Vector2d
Definition of a 2D vector.
Definition: matrix.hpp:388
Definition: camera2d.hpp:17
diff --git a/search/all_0.js b/search/all_0.js index 967cc615..230a28fd 100644 --- a/search/all_0.js +++ b/search/all_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['body',['Body',['../classyage_1_1Body.html',1,'yage']]] + ['colsize',['colSize',['../classyage_1_1Matrix.html#a2753285bcc49a050a49976a6dbc8e89a',1,'yage::Matrix']]] ]; diff --git a/search/all_1.js b/search/all_1.js index efbf7c6b..5193cc53 100644 --- a/search/all_1.js +++ b/search/all_1.js @@ -1,7 +1,6 @@ var searchData= [ - ['camera2d',['Camera2D',['../classyage_1_1Camera2D.html',1,'yage']]], - ['collider',['Collider',['../classyage_1_1Collider.html',1,'yage']]], - ['collisionbody',['CollisionBody',['../classyage_1_1CollisionBody.html',1,'yage']]], - ['color',['Color',['../structyage_1_1Color.html',1,'yage']]] + ['data_5f',['data_',['../classyage_1_1Matrix.html#a0ab11922319366f6e74f6e9e7d7abeed',1,'yage::Matrix']]], + ['dot',['dot',['../namespaceyage_1_1matrix.html#ac4d2f55a5c3369ec42001776a582c30a',1,'yage::matrix']]], + ['documentation',['Documentation',['../md_docs_README.html',1,'']]] ]; diff --git a/search/all_2.js b/search/all_2.js index 3ced3788..995953e1 100644 --- a/search/all_2.js +++ b/search/all_2.js @@ -1,5 +1,4 @@ var searchData= [ - ['detail',['detail',['../namespacedetail.html',1,'']]], - ['documentation',['Documentation',['../md_docs_README.html',1,'']]] + ['getrow',['getRow',['../classyage_1_1Matrix.html#adffb22a99417271958621ff1f51b7f08',1,'yage::Matrix']]] ]; diff --git a/search/all_3.js b/search/all_3.js index 2376c33c..7c08ffa0 100644 --- a/search/all_3.js +++ b/search/all_3.js @@ -1,5 +1,8 @@ var searchData= [ - ['glslprogram',['GlslProgram',['../classyage_1_1GlslProgram.html',1,'yage']]], - ['glyph',['Glyph',['../classyage_1_1Glyph.html',1,'yage']]] + ['matrix',['Matrix',['../classyage_1_1Matrix.html',1,'yage::Matrix< Rows, Cols, Type >'],['../classyage_1_1Matrix.html#a73b7d1f94f4f72a2294b71b3a35794ad',1,'yage::Matrix::Matrix()']]], + ['matrix_2ehpp',['matrix.hpp',['../matrix_8hpp.html',1,'']]], + ['matrix_3c_20rows_2c_201_2c_20double_20_3e',['Matrix< Rows, 1, double >',['../classyage_1_1Matrix.html',1,'yage']]], + ['matrix_3c_20rows_2c_201_2c_20type_20_3e',['Matrix< Rows, 1, Type >',['../classyage_1_1Matrix.html',1,'yage']]], + ['multiply',['multiply',['../namespaceyage_1_1matrix.html#a277125ad9fa06a7119c59d350e129985',1,'yage::matrix']]] ]; diff --git a/search/all_4.js b/search/all_4.js index 04ae98e8..a2780bef 100644 --- a/search/all_4.js +++ b/search/all_4.js @@ -1,6 +1,4 @@ var searchData= [ - ['imageloader',['ImageLoader',['../classyage_1_1ImageLoader.html',1,'yage']]], - ['inputmanager',['InputManager',['../classyage_1_1InputManager.html',1,'yage']]], - ['iomanager',['IoManager',['../classyage_1_1IoManager.html',1,'yage']]] + ['rowsize',['rowSize',['../classyage_1_1Matrix.html#acaf0837fade0cb4179603b97ac224965',1,'yage::Matrix']]] ]; diff --git a/search/all_5.js b/search/all_5.js index b656eba7..20f93422 100644 --- a/search/all_5.js +++ b/search/all_5.js @@ -1,7 +1,4 @@ var searchData= [ - ['matrix',['Matrix',['../classyage_1_1Matrix.html',1,'yage']]], - ['matrix_2ehpp',['matrix.hpp',['../matrix_8hpp.html',1,'']]], - ['matrix_3c_20rows_2c_201_2c_20double_20_3e',['Matrix< Rows, 1, double >',['../classyage_1_1Matrix.html',1,'yage']]], - ['matrix_3c_20rows_2c_201_2c_20type_20_3e',['Matrix< Rows, 1, Type >',['../classyage_1_1Matrix.html',1,'yage']]] + ['transpose',['transpose',['../namespaceyage_1_1matrix.html#a62de4b4b6bab23717d957c370f2e41c7',1,'yage::matrix']]] ]; diff --git a/search/all_6.js b/search/all_6.js index d616947f..e583272e 100644 --- a/search/all_6.js +++ b/search/all_6.js @@ -1,5 +1,6 @@ var searchData= [ - ['particlebody',['ParticleBody',['../classyage_1_1ParticleBody.html',1,'yage']]], - ['position',['Position',['../structyage_1_1Position.html',1,'yage']]] + ['vector2',['Vector2',['../classyage_1_1Vector2.html',1,'yage']]], + ['vector2_3c_20double_20_3e',['Vector2< double >',['../classyage_1_1Vector2.html',1,'yage']]], + ['vector2d',['Vector2d',['../matrix_8hpp.html#a6cdcf60e5d3972cac5e8a6be40403078',1,'yage']]] ]; diff --git a/search/all_7.js b/search/all_7.js index 1f9a4487..a2bef0db 100644 --- a/search/all_7.js +++ b/search/all_7.js @@ -1,8 +1,5 @@ var searchData= [ - ['rectanglecollider',['RectangleCollider',['../classyage_1_1RectangleCollider.html',1,'yage']]], - ['renderbatch',['RenderBatch',['../classyage_1_1RenderBatch.html',1,'yage']]], - ['resourcemanager',['ResourceManager',['../classyage_1_1ResourceManager.html',1,'yage']]], - ['rigidbody',['RigidBody',['../classyage_1_1RigidBody.html',1,'yage']]], - ['row',['Row',['../classyage_1_1detail_1_1Row.html',1,'yage::detail']]] + ['matrix',['matrix',['../namespaceyage_1_1matrix.html',1,'yage']]], + ['yage',['YAGE',['../md_README.html',1,'']]] ]; diff --git a/search/all_8.html b/search/all_8.html deleted file mode 100644 index 11e27cdb..00000000 --- a/search/all_8.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/all_8.js b/search/all_8.js deleted file mode 100644 index 8d412bde..00000000 --- a/search/all_8.js +++ /dev/null @@ -1,5 +0,0 @@ -var searchData= -[ - ['sprite',['Sprite',['../classyage_1_1Sprite.html',1,'yage']]], - ['spritebatch',['SpriteBatch',['../classyage_1_1SpriteBatch.html',1,'yage']]] -]; diff --git a/search/all_9.html b/search/all_9.html deleted file mode 100644 index f8abbbe5..00000000 --- a/search/all_9.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/all_9.js b/search/all_9.js deleted file mode 100644 index bb215bc2..00000000 --- a/search/all_9.js +++ /dev/null @@ -1,5 +0,0 @@ -var searchData= -[ - ['texture',['Texture',['../structyage_1_1Texture.html',1,'yage']]], - ['texturecache',['TextureCache',['../classyage_1_1TextureCache.html',1,'yage']]] -]; diff --git a/search/all_a.html b/search/all_a.html deleted file mode 100644 index 9601fcee..00000000 --- a/search/all_a.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/all_a.js b/search/all_a.js deleted file mode 100644 index 92c686bb..00000000 --- a/search/all_a.js +++ /dev/null @@ -1,4 +0,0 @@ -var searchData= -[ - ['uv',['UV',['../structyage_1_1UV.html',1,'yage']]] -]; diff --git a/search/all_b.html b/search/all_b.html deleted file mode 100644 index 0814e4e0..00000000 --- a/search/all_b.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/all_b.js b/search/all_b.js deleted file mode 100644 index afb8654e..00000000 --- a/search/all_b.js +++ /dev/null @@ -1,9 +0,0 @@ -var searchData= -[ - ['vector',['Vector',['../classyage_1_1Vector.html',1,'yage']]], - ['vector2',['Vector2',['../classyage_1_1Vector2.html',1,'yage']]], - ['vector2_3c_20double_20_3e',['Vector2< double >',['../classyage_1_1Vector2.html',1,'yage']]], - ['vector_3c_202_2c_20double_20_3e',['Vector< 2, double >',['../classyage_1_1Vector.html',1,'yage']]], - ['vector_3c_202_2c_20type_20_3e',['Vector< 2, Type >',['../classyage_1_1Vector.html',1,'yage']]], - ['vertex',['Vertex',['../structyage_1_1Vertex.html',1,'yage']]] -]; diff --git a/search/all_c.html b/search/all_c.html deleted file mode 100644 index da08c387..00000000 --- a/search/all_c.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/all_c.js b/search/all_c.js deleted file mode 100644 index 50e8b3e6..00000000 --- a/search/all_c.js +++ /dev/null @@ -1,4 +0,0 @@ -var searchData= -[ - ['window',['Window',['../classyage_1_1Window.html',1,'yage']]] -]; diff --git a/search/all_d.html b/search/all_d.html deleted file mode 100644 index 9986c9cb..00000000 --- a/search/all_d.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/all_d.js b/search/all_d.js deleted file mode 100644 index 950425e7..00000000 --- a/search/all_d.js +++ /dev/null @@ -1,4 +0,0 @@ -var searchData= -[ - ['yage',['YAGE',['../md_README.html',1,'']]] -]; diff --git a/search/classes_0.js b/search/classes_0.js index 967cc615..b3ac49ff 100644 --- a/search/classes_0.js +++ b/search/classes_0.js @@ -1,4 +1,6 @@ var searchData= [ - ['body',['Body',['../classyage_1_1Body.html',1,'yage']]] + ['matrix',['Matrix',['../classyage_1_1Matrix.html',1,'yage']]], + ['matrix_3c_20rows_2c_201_2c_20double_20_3e',['Matrix< Rows, 1, double >',['../classyage_1_1Matrix.html',1,'yage']]], + ['matrix_3c_20rows_2c_201_2c_20type_20_3e',['Matrix< Rows, 1, Type >',['../classyage_1_1Matrix.html',1,'yage']]] ]; diff --git a/search/classes_1.js b/search/classes_1.js index efbf7c6b..7dd4e2bf 100644 --- a/search/classes_1.js +++ b/search/classes_1.js @@ -1,7 +1,5 @@ var searchData= [ - ['camera2d',['Camera2D',['../classyage_1_1Camera2D.html',1,'yage']]], - ['collider',['Collider',['../classyage_1_1Collider.html',1,'yage']]], - ['collisionbody',['CollisionBody',['../classyage_1_1CollisionBody.html',1,'yage']]], - ['color',['Color',['../structyage_1_1Color.html',1,'yage']]] + ['vector2',['Vector2',['../classyage_1_1Vector2.html',1,'yage']]], + ['vector2_3c_20double_20_3e',['Vector2< double >',['../classyage_1_1Vector2.html',1,'yage']]] ]; diff --git a/search/classes_2.html b/search/classes_2.html deleted file mode 100644 index 5c09c969..00000000 --- a/search/classes_2.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/classes_2.js b/search/classes_2.js deleted file mode 100644 index 2376c33c..00000000 --- a/search/classes_2.js +++ /dev/null @@ -1,5 +0,0 @@ -var searchData= -[ - ['glslprogram',['GlslProgram',['../classyage_1_1GlslProgram.html',1,'yage']]], - ['glyph',['Glyph',['../classyage_1_1Glyph.html',1,'yage']]] -]; diff --git a/search/classes_3.html b/search/classes_3.html deleted file mode 100644 index 5faaeba8..00000000 --- a/search/classes_3.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/classes_3.js b/search/classes_3.js deleted file mode 100644 index 04ae98e8..00000000 --- a/search/classes_3.js +++ /dev/null @@ -1,6 +0,0 @@ -var searchData= -[ - ['imageloader',['ImageLoader',['../classyage_1_1ImageLoader.html',1,'yage']]], - ['inputmanager',['InputManager',['../classyage_1_1InputManager.html',1,'yage']]], - ['iomanager',['IoManager',['../classyage_1_1IoManager.html',1,'yage']]] -]; diff --git a/search/classes_4.html b/search/classes_4.html deleted file mode 100644 index b3f11bc7..00000000 --- a/search/classes_4.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/classes_4.js b/search/classes_4.js deleted file mode 100644 index b3ac49ff..00000000 --- a/search/classes_4.js +++ /dev/null @@ -1,6 +0,0 @@ -var searchData= -[ - ['matrix',['Matrix',['../classyage_1_1Matrix.html',1,'yage']]], - ['matrix_3c_20rows_2c_201_2c_20double_20_3e',['Matrix< Rows, 1, double >',['../classyage_1_1Matrix.html',1,'yage']]], - ['matrix_3c_20rows_2c_201_2c_20type_20_3e',['Matrix< Rows, 1, Type >',['../classyage_1_1Matrix.html',1,'yage']]] -]; diff --git a/search/classes_5.html b/search/classes_5.html deleted file mode 100644 index 952ace6f..00000000 --- a/search/classes_5.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/classes_5.js b/search/classes_5.js deleted file mode 100644 index d616947f..00000000 --- a/search/classes_5.js +++ /dev/null @@ -1,5 +0,0 @@ -var searchData= -[ - ['particlebody',['ParticleBody',['../classyage_1_1ParticleBody.html',1,'yage']]], - ['position',['Position',['../structyage_1_1Position.html',1,'yage']]] -]; diff --git a/search/classes_6.html b/search/classes_6.html deleted file mode 100644 index 75eef9f4..00000000 --- a/search/classes_6.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/classes_6.js b/search/classes_6.js deleted file mode 100644 index 1f9a4487..00000000 --- a/search/classes_6.js +++ /dev/null @@ -1,8 +0,0 @@ -var searchData= -[ - ['rectanglecollider',['RectangleCollider',['../classyage_1_1RectangleCollider.html',1,'yage']]], - ['renderbatch',['RenderBatch',['../classyage_1_1RenderBatch.html',1,'yage']]], - ['resourcemanager',['ResourceManager',['../classyage_1_1ResourceManager.html',1,'yage']]], - ['rigidbody',['RigidBody',['../classyage_1_1RigidBody.html',1,'yage']]], - ['row',['Row',['../classyage_1_1detail_1_1Row.html',1,'yage::detail']]] -]; diff --git a/search/classes_7.html b/search/classes_7.html deleted file mode 100644 index 745f5f28..00000000 --- a/search/classes_7.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/classes_7.js b/search/classes_7.js deleted file mode 100644 index 8d412bde..00000000 --- a/search/classes_7.js +++ /dev/null @@ -1,5 +0,0 @@ -var searchData= -[ - ['sprite',['Sprite',['../classyage_1_1Sprite.html',1,'yage']]], - ['spritebatch',['SpriteBatch',['../classyage_1_1SpriteBatch.html',1,'yage']]] -]; diff --git a/search/classes_8.html b/search/classes_8.html deleted file mode 100644 index 5a443d9d..00000000 --- a/search/classes_8.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/classes_8.js b/search/classes_8.js deleted file mode 100644 index bb215bc2..00000000 --- a/search/classes_8.js +++ /dev/null @@ -1,5 +0,0 @@ -var searchData= -[ - ['texture',['Texture',['../structyage_1_1Texture.html',1,'yage']]], - ['texturecache',['TextureCache',['../classyage_1_1TextureCache.html',1,'yage']]] -]; diff --git a/search/classes_9.html b/search/classes_9.html deleted file mode 100644 index 9cb55be4..00000000 --- a/search/classes_9.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/classes_9.js b/search/classes_9.js deleted file mode 100644 index 92c686bb..00000000 --- a/search/classes_9.js +++ /dev/null @@ -1,4 +0,0 @@ -var searchData= -[ - ['uv',['UV',['../structyage_1_1UV.html',1,'yage']]] -]; diff --git a/search/classes_a.html b/search/classes_a.html deleted file mode 100644 index 54940d78..00000000 --- a/search/classes_a.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/classes_a.js b/search/classes_a.js deleted file mode 100644 index afb8654e..00000000 --- a/search/classes_a.js +++ /dev/null @@ -1,9 +0,0 @@ -var searchData= -[ - ['vector',['Vector',['../classyage_1_1Vector.html',1,'yage']]], - ['vector2',['Vector2',['../classyage_1_1Vector2.html',1,'yage']]], - ['vector2_3c_20double_20_3e',['Vector2< double >',['../classyage_1_1Vector2.html',1,'yage']]], - ['vector_3c_202_2c_20double_20_3e',['Vector< 2, double >',['../classyage_1_1Vector.html',1,'yage']]], - ['vector_3c_202_2c_20type_20_3e',['Vector< 2, Type >',['../classyage_1_1Vector.html',1,'yage']]], - ['vertex',['Vertex',['../structyage_1_1Vertex.html',1,'yage']]] -]; diff --git a/search/classes_b.html b/search/classes_b.html deleted file mode 100644 index 6071ae04..00000000 --- a/search/classes_b.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
-
Loading...
-
- -
Searching...
-
No Matches
- -
- - diff --git a/search/classes_b.js b/search/classes_b.js deleted file mode 100644 index 50e8b3e6..00000000 --- a/search/classes_b.js +++ /dev/null @@ -1,4 +0,0 @@ -var searchData= -[ - ['window',['Window',['../classyage_1_1Window.html',1,'yage']]] -]; diff --git a/search/functions_0.html b/search/functions_0.html new file mode 100644 index 00000000..4e6d87d1 --- /dev/null +++ b/search/functions_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/search/functions_0.js b/search/functions_0.js new file mode 100644 index 00000000..230a28fd --- /dev/null +++ b/search/functions_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['colsize',['colSize',['../classyage_1_1Matrix.html#a2753285bcc49a050a49976a6dbc8e89a',1,'yage::Matrix']]] +]; diff --git a/search/functions_1.html b/search/functions_1.html new file mode 100644 index 00000000..b343e2db --- /dev/null +++ b/search/functions_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/search/functions_1.js b/search/functions_1.js new file mode 100644 index 00000000..298c1dd0 --- /dev/null +++ b/search/functions_1.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['dot',['dot',['../namespaceyage_1_1matrix.html#ac4d2f55a5c3369ec42001776a582c30a',1,'yage::matrix']]] +]; diff --git a/search/functions_2.html b/search/functions_2.html new file mode 100644 index 00000000..ecce2f31 --- /dev/null +++ b/search/functions_2.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/search/functions_2.js b/search/functions_2.js new file mode 100644 index 00000000..995953e1 --- /dev/null +++ b/search/functions_2.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['getrow',['getRow',['../classyage_1_1Matrix.html#adffb22a99417271958621ff1f51b7f08',1,'yage::Matrix']]] +]; diff --git a/search/functions_3.html b/search/functions_3.html new file mode 100644 index 00000000..15f06abd --- /dev/null +++ b/search/functions_3.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/search/functions_3.js b/search/functions_3.js new file mode 100644 index 00000000..a327fdef --- /dev/null +++ b/search/functions_3.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['matrix',['Matrix',['../classyage_1_1Matrix.html#a73b7d1f94f4f72a2294b71b3a35794ad',1,'yage::Matrix']]], + ['multiply',['multiply',['../namespaceyage_1_1matrix.html#a277125ad9fa06a7119c59d350e129985',1,'yage::matrix']]] +]; diff --git a/search/functions_4.html b/search/functions_4.html new file mode 100644 index 00000000..8985ff27 --- /dev/null +++ b/search/functions_4.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/search/functions_4.js b/search/functions_4.js new file mode 100644 index 00000000..a2780bef --- /dev/null +++ b/search/functions_4.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['rowsize',['rowSize',['../classyage_1_1Matrix.html#acaf0837fade0cb4179603b97ac224965',1,'yage::Matrix']]] +]; diff --git a/search/functions_5.html b/search/functions_5.html new file mode 100644 index 00000000..03149184 --- /dev/null +++ b/search/functions_5.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/search/functions_5.js b/search/functions_5.js new file mode 100644 index 00000000..20f93422 --- /dev/null +++ b/search/functions_5.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['transpose',['transpose',['../namespaceyage_1_1matrix.html#a62de4b4b6bab23717d957c370f2e41c7',1,'yage::matrix']]] +]; diff --git a/search/namespaces_0.js b/search/namespaces_0.js index bc81e42c..bb0b53b5 100644 --- a/search/namespaces_0.js +++ b/search/namespaces_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['detail',['detail',['../namespacedetail.html',1,'']]] + ['matrix',['matrix',['../namespaceyage_1_1matrix.html',1,'yage']]] ]; diff --git a/search/searchdata.js b/search/searchdata.js index d447eca4..3614459b 100644 --- a/search/searchdata.js +++ b/search/searchdata.js @@ -1,10 +1,13 @@ var indexSectionsWithContent = { - 0: "bcdgimprstuvwy", - 1: "bcgimprstuvw", - 2: "d", + 0: "cdgmrtvy", + 1: "mv", + 2: "y", 3: "m", - 4: "dy" + 4: "cdgmrt", + 5: "d", + 6: "v", + 7: "dy" }; var indexSectionNames = @@ -13,7 +16,10 @@ var indexSectionNames = 1: "classes", 2: "namespaces", 3: "files", - 4: "pages" + 4: "functions", + 5: "variables", + 6: "typedefs", + 7: "pages" }; var indexSectionLabels = @@ -22,6 +28,9 @@ var indexSectionLabels = 1: "Classes", 2: "Namespaces", 3: "Files", - 4: "Pages" + 4: "Functions", + 5: "Variables", + 6: "Typedefs", + 7: "Pages" }; diff --git a/search/typedefs_0.html b/search/typedefs_0.html new file mode 100644 index 00000000..05722e1c --- /dev/null +++ b/search/typedefs_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/search/typedefs_0.js b/search/typedefs_0.js new file mode 100644 index 00000000..7f6e1c12 --- /dev/null +++ b/search/typedefs_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['vector2d',['Vector2d',['../matrix_8hpp.html#a6cdcf60e5d3972cac5e8a6be40403078',1,'yage']]] +]; diff --git a/search/variables_0.html b/search/variables_0.html new file mode 100644 index 00000000..74ce8072 --- /dev/null +++ b/search/variables_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/search/variables_0.js b/search/variables_0.js new file mode 100644 index 00000000..3c258b6e --- /dev/null +++ b/search/variables_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['data_5f',['data_',['../classyage_1_1Matrix.html#a0ab11922319366f6e74f6e9e7d7abeed',1,'yage::Matrix']]] +]; diff --git a/sprite_8hpp_source.html b/sprite_8hpp_source.html index 0f3e715e..88949260 100644 --- a/sprite_8hpp_source.html +++ b/sprite_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,13 +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: texture.hpp:17
-
Definition: camera2d.hpp:17
-
Definition: sprite.hpp:21
+
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
diff --git a/spritebatch_8hpp_source.html b/spritebatch_8hpp_source.html index 77c146eb..27d32ea5 100644 --- a/spritebatch_8hpp_source.html +++ b/spritebatch_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,16 +68,11 @@ $(function() {
spritebatch.hpp
-
1 /* ----------------------------------------------------------------------------
2  * spritebatch.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_BATCH_HPP
10 #define SPRITE_BATCH_HPP
11 
12 #include "vertex.hpp"
13 
14 #include <GL/glew.h>
15 #include <glm/glm.hpp>
16 
17 #include <vector>
18 
19 namespace yage
20 {
21 
22 class SpriteBatch;
23 
24 class Glyph
25 {
26  // member variables
27 private:
28  GLuint texture_;
29  float depth_;
30  Vertex top_left_;
31  Vertex top_right_;
32  Vertex bottom_right_;
33  Vertex bottom_left_;
34 
35  // member functions
36 public:
37  Glyph(GLuint texture, float depth, const Vertex &top_left, const Vertex &top_right, const Vertex &bottom_right, const Vertex &bottom_left);
38 
39  inline GLuint texture() const { return texture_; }
40  inline float depth() const { return depth_; }
41  inline Vertex top_left() const { return top_left_; }
42  inline Vertex top_right() const { return top_right_; }
43  inline Vertex bottom_right() const { return bottom_right_; }
44  inline Vertex bottom_left() const { return bottom_left_; }
45 };
46 
48 {
49  friend SpriteBatch;
50  // member variables
51 private:
52  GLsizei num_vertices_;
53  GLint offset_;
54  GLuint texture_;
55 
56  // member functions
57 public:
58  RenderBatch(GLint offset, GLsizei num_vertices, GLuint texture);
59 
60  // getters
61  inline GLint offset() const { return offset_; }
62  inline GLsizei num_vertices() const { return num_vertices_; }
63  inline GLuint texture() const { return texture_; }
64 };
65 
67 {
68  // member variables
69 public:
70  static const int NUM_VERTICES=6;
71 private:
72  GLuint vbo_=0;
73  GLuint vao_=0;
74  std::vector<Glyph> glyphs_;
75  std::vector<Glyph *> glyph_ptrs_;
76  std::vector<RenderBatch> render_batches_;
77 
78  // member functions
79 public:
80  SpriteBatch();
81  ~SpriteBatch();
82 
83  // initialize vaos and vbos
84  void init();
85  void begin();
86  void end();
87  // adds a sprite to the sprite batch to be rendered later
88  void draw(const glm::vec4 &destination_rect, const glm::vec4 &uv_rect, GLuint texture, const Color &color, float depth);
89  // render the batch
90  void render();
91 private:
92  void createVertexArray();
93  void createRenderBatches();
94  void sortGlyphs();
95 };
96 
97 } // yage
98 
99 #endif
Definition: spritebatch.hpp:47
-
Definition: vertex.hpp:58
-
Definition: spritebatch.hpp:66
-
Definition: spritebatch.hpp:24
-
Definition: camera2d.hpp:17
-
Definition: vertex.hpp:30
+
1 /* ----------------------------------------------------------------------------
2  * spritebatch.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_BATCH_HPP
10 #define SPRITE_BATCH_HPP
11 
12 #include "vertex.hpp"
13 
14 #include <GL/glew.h>
15 #include <glm/glm.hpp>
16 
17 #include <vector>
18 
19 namespace yage
20 {
21 
22 class SpriteBatch;
23 
24 class Glyph
25 {
26  // member variables
27 private:
28  GLuint texture_;
29  float depth_;
30  Vertex top_left_;
31  Vertex top_right_;
32  Vertex bottom_right_;
33  Vertex bottom_left_;
34 
35  // member functions
36 public:
37  Glyph(GLuint texture, float depth, const Vertex &top_left, const Vertex &top_right, const Vertex &bottom_right, const Vertex &bottom_left);
38 
39  inline GLuint texture() const { return texture_; }
40  inline float depth() const { return depth_; }
41  inline Vertex top_left() const { return top_left_; }
42  inline Vertex top_right() const { return top_right_; }
43  inline Vertex bottom_right() const { return bottom_right_; }
44  inline Vertex bottom_left() const { return bottom_left_; }
45 };
46 
47 class RenderBatch
48 {
49  friend SpriteBatch;
50  // member variables
51 private:
52  GLsizei num_vertices_;
53  GLint offset_;
54  GLuint texture_;
55 
56  // member functions
57 public:
58  RenderBatch(GLint offset, GLsizei num_vertices, GLuint texture);
59 
60  // getters
61  inline GLint offset() const { return offset_; }
62  inline GLsizei num_vertices() const { return num_vertices_; }
63  inline GLuint texture() const { return texture_; }
64 };
65 
66 class SpriteBatch
67 {
68  // member variables
69 public:
70  static const int NUM_VERTICES=6;
71 private:
72  GLuint vbo_=0;
73  GLuint vao_=0;
74  std::vector<Glyph> glyphs_;
75  std::vector<Glyph *> glyph_ptrs_;
76  std::vector<RenderBatch> render_batches_;
77 
78  // member functions
79 public:
80  SpriteBatch();
81  ~SpriteBatch();
82 
83  // initialize vaos and vbos
84  void init();
85  void begin();
86  void end();
87  // adds a sprite to the sprite batch to be rendered later
88  void draw(const glm::vec4 &destination_rect, const glm::vec4 &uv_rect, GLuint texture, const Color &color, float depth);
89  // render the batch
90  void render();
91 private:
92  void createVertexArray();
93  void createRenderBatches();
94  void sortGlyphs();
95 };
96 
97 } // yage
98 
99 #endif
Definition: camera2d.hpp:17
diff --git a/structyage_1_1Color-members.html b/structyage_1_1Color-members.html deleted file mode 100644 index 5951b990..00000000 --- a/structyage_1_1Color-members.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::Color Member List
-
-
- -

This is the complete list of members for yage::Color, including all inherited members.

- - - - - - - -
a (defined in yage::Color)yage::Color
b (defined in yage::Color)yage::Color
Color() (defined in yage::Color)yage::Colorinline
Color(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_) (defined in yage::Color)yage::Colorinline
g (defined in yage::Color)yage::Color
r (defined in yage::Color)yage::Color
- - - - diff --git a/structyage_1_1Color.html b/structyage_1_1Color.html deleted file mode 100644 index 09a50b45..00000000 --- a/structyage_1_1Color.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - -YAGE: yage::Color Struct Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::Color Struct Reference
-
-
- - - - -

-Public Member Functions

Color (GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_)
 
- - - - - - - - - -

-Public Attributes

-GLubyte r
 
-GLubyte g
 
-GLubyte b
 
-GLubyte a
 
-
The documentation for this struct was generated from the following file: -
- - - - diff --git a/structyage_1_1Position-members.html b/structyage_1_1Position-members.html deleted file mode 100644 index 92f51e17..00000000 --- a/structyage_1_1Position-members.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::Position Member List
-
-
- -

This is the complete list of members for yage::Position, including all inherited members.

- - - - - -
Position() (defined in yage::Position)yage::Positioninline
Position(float x_, float y_) (defined in yage::Position)yage::Positioninline
x (defined in yage::Position)yage::Position
y (defined in yage::Position)yage::Position
- - - - diff --git a/structyage_1_1Position.html b/structyage_1_1Position.html deleted file mode 100644 index fb202e23..00000000 --- a/structyage_1_1Position.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - -YAGE: yage::Position Struct Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::Position Struct Reference
-
-
- - - - -

-Public Member Functions

Position (float x_, float y_)
 
- - - - - -

-Public Attributes

-float x
 
-float y
 
-
The documentation for this struct was generated from the following file: -
- - - - diff --git a/structyage_1_1Texture-members.html b/structyage_1_1Texture-members.html deleted file mode 100644 index 35da4d95..00000000 --- a/structyage_1_1Texture-members.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::Texture Member List
-
-
- -

This is the complete list of members for yage::Texture, including all inherited members.

- - - - -
height (defined in yage::Texture)yage::Texture
id (defined in yage::Texture)yage::Texture
width (defined in yage::Texture)yage::Texture
- - - - diff --git a/structyage_1_1Texture.html b/structyage_1_1Texture.html deleted file mode 100644 index a7bc4abb..00000000 --- a/structyage_1_1Texture.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - -YAGE: yage::Texture Struct Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::Texture Struct Reference
-
-
- - - - - - - - -

-Public Attributes

-GLuint id
 
-int width
 
-int height
 
-
The documentation for this struct was generated from the following file: -
- - - - diff --git a/structyage_1_1UV-members.html b/structyage_1_1UV-members.html deleted file mode 100644 index 1c623730..00000000 --- a/structyage_1_1UV-members.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::UV Member List
-
-
- -

This is the complete list of members for yage::UV, including all inherited members.

- - - - - -
u (defined in yage::UV)yage::UV
UV() (defined in yage::UV)yage::UVinline
UV(float u_, float v_) (defined in yage::UV)yage::UVinline
v (defined in yage::UV)yage::UV
- - - - diff --git a/structyage_1_1UV.html b/structyage_1_1UV.html deleted file mode 100644 index bd38d15d..00000000 --- a/structyage_1_1UV.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - -YAGE: yage::UV Struct Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::UV Struct Reference
-
-
- - - - -

-Public Member Functions

UV (float u_, float v_)
 
- - - - - -

-Public Attributes

-float u
 
-float v
 
-
The documentation for this struct was generated from the following file: -
- - - - diff --git a/structyage_1_1Vertex-members.html b/structyage_1_1Vertex-members.html deleted file mode 100644 index 93af8065..00000000 --- a/structyage_1_1Vertex-members.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - -YAGE: Member List - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
-
-
yage::Vertex Member List
-
-
- -

This is the complete list of members for yage::Vertex, including all inherited members.

- - - - - - - - - -
color (defined in yage::Vertex)yage::Vertex
position (defined in yage::Vertex)yage::Vertex
setColor(GLubyte r, GLubyte g, GLubyte b, GLubyte a) (defined in yage::Vertex)yage::Vertexinline
setPosition(float x, float y) (defined in yage::Vertex)yage::Vertexinline
setUv(float u, float v) (defined in yage::Vertex)yage::Vertexinline
uv (defined in yage::Vertex)yage::Vertex
Vertex() (defined in yage::Vertex)yage::Vertexinline
Vertex(const Position &position_, const Color &color_, const UV &uv_) (defined in yage::Vertex)yage::Vertexinline
- - - - diff --git a/structyage_1_1Vertex.html b/structyage_1_1Vertex.html deleted file mode 100644 index fa1039b4..00000000 --- a/structyage_1_1Vertex.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - -YAGE: yage::Vertex Struct Reference - - - - - - - - - -
-
- - - - - - -
-
YAGE -
-
Yet Another Game Engine
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
yage::Vertex Struct Reference
-
-
- - - - - - - - - - -

-Public Member Functions

Vertex (const Position &position_, const Color &color_, const UV &uv_)
 
-void setPosition (float x, float y)
 
-void setColor (GLubyte r, GLubyte g, GLubyte b, GLubyte a)
 
-void setUv (float u, float v)
 
- - - - - - - -

-Public Attributes

-Position position
 
-Color color
 
-UV uv
 
-
The documentation for this struct was generated from the following file: -
- - - - diff --git a/texture_8hpp_source.html b/texture_8hpp_source.html index 3bdf4883..45646d19 100644 --- a/texture_8hpp_source.html +++ b/texture_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,12 +68,11 @@ $(function() {
texture.hpp
-
1 /* ----------------------------------------------------------------------------
2  * texture.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 GL_TEXTURE_HPP
10 #define GL_TEXTURE_HPP
11 
12 #include <GL/glew.h>
13 
14 namespace yage
15 {
16 
17 struct Texture
18 {
19  GLuint id;
20  int width;
21  int height;
22 };
23 
24 } // yage
25 
26 #endif
Definition: texture.hpp:17
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * texture.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 GL_TEXTURE_HPP
10 #define GL_TEXTURE_HPP
11 
12 #include <GL/glew.h>
13 
14 namespace yage
15 {
16 
17 struct Texture
18 {
19  GLuint id;
20  int width;
21  int height;
22 };
23 
24 } // yage
25 
26 #endif
Definition: camera2d.hpp:17
diff --git a/texturecache_8hpp_source.html b/texturecache_8hpp_source.html index 6000e1e4..cfc77a6f 100644 --- a/texturecache_8hpp_source.html +++ b/texturecache_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,13 +68,11 @@ $(function() {
texturecache.hpp
-
1 /* ----------------------------------------------------------------------------
2  * texturecache.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 TEXTURE_CACHE_HPP
10 #define TEXTURE_CACHE_HPP
11 
12 #include "texture.hpp"
13 
14 #include <unordered_map>
15 
16 namespace yage
17 {
18 
20 {
21 private:
22  std::unordered_map<std::string, Texture> texture_map_;
23 public:
24  TextureCache();
25  ~TextureCache();
26 
27  Texture getTexture(const std::string &texture_path);
28 };
29 
30 } // yage
31 
32 #endif
Definition: texture.hpp:17
-
Definition: texturecache.hpp:19
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * texturecache.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 TEXTURE_CACHE_HPP
10 #define TEXTURE_CACHE_HPP
11 
12 #include "texture.hpp"
13 
14 #include <unordered_map>
15 
16 namespace yage
17 {
18 
19 class TextureCache
20 {
21 private:
22  std::unordered_map<std::string, Texture> texture_map_;
23 public:
24  TextureCache();
25  ~TextureCache();
26 
27  Texture getTexture(const std::string &texture_path);
28 };
29 
30 } // yage
31 
32 #endif
Definition: camera2d.hpp:17
diff --git a/vertex_8hpp_source.html b/vertex_8hpp_source.html index 667f2c9f..91db23d5 100644 --- a/vertex_8hpp_source.html +++ b/vertex_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,15 +68,11 @@ $(function() {
vertex.hpp
-
1 /* ----------------------------------------------------------------------------
2  * vertex.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 VERTEX_HPP
10 #define VERTEX_HPP
11 
12 #include <GL/glew.h>
13 
14 namespace yage
15 {
16 
17 struct Position
18 {
19  float x;
20  float y;
21 
22  Position()
23  {}
24 
25  Position(float x_, float y_) :
26  x(x_), y(y_)
27  {}
28 };
29 
30 struct Color
31 {
32  GLubyte r;
33  GLubyte g;
34  GLubyte b;
35  GLubyte a;
36 
37  Color()
38  {}
39 
40  Color(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_) :
41  r(r_), g(g_), b(b_), a(a_)
42  {}
43 };
44 
45 struct UV
46 {
47  float u;
48  float v;
49 
50  UV()
51  {}
52 
53  UV(float u_, float v_) :
54  u(u_), v(v_)
55  {}
56 };
57 
58 struct Vertex
59 {
60  Position position;
61  Color color;
62  UV uv;
63 
64  Vertex()
65  {}
66 
67  Vertex(const Position &position_, const Color &color_, const UV &uv_) :
68  position(position_), color(color_), uv(uv_)
69  {}
70 
71  void setPosition(float x, float y)
72  {
73  position.x = x;
74  position.y = y;
75  }
76 
77  void setColor(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
78  {
79  color.r = r;
80  color.g = g;
81  color.b = b;
82  color.a = a;
83  }
84 
85  void setUv(float u, float v)
86  {
87  uv.u = u;
88  uv.v = v;
89  }
90 };
91 
92 } // yage
93 
94 #endif
Definition: vertex.hpp:58
-
Definition: vertex.hpp:45
-
Definition: vertex.hpp:17
-
Definition: camera2d.hpp:17
-
Definition: vertex.hpp:30
+
1 /* ----------------------------------------------------------------------------
2  * vertex.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 VERTEX_HPP
10 #define VERTEX_HPP
11 
12 #include <GL/glew.h>
13 
14 namespace yage
15 {
16 
17 struct Position
18 {
19  float x;
20  float y;
21 
22  Position()
23  {}
24 
25  Position(float x_, float y_) :
26  x(x_), y(y_)
27  {}
28 };
29 
30 struct Color
31 {
32  GLubyte r;
33  GLubyte g;
34  GLubyte b;
35  GLubyte a;
36 
37  Color()
38  {}
39 
40  Color(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_) :
41  r(r_), g(g_), b(b_), a(a_)
42  {}
43 };
44 
45 struct UV
46 {
47  float u;
48  float v;
49 
50  UV()
51  {}
52 
53  UV(float u_, float v_) :
54  u(u_), v(v_)
55  {}
56 };
57 
58 struct Vertex
59 {
60  Position position;
61  Color color;
62  UV uv;
63 
64  Vertex()
65  {}
66 
67  Vertex(const Position &position_, const Color &color_, const UV &uv_) :
68  position(position_), color(color_), uv(uv_)
69  {}
70 
71  void setPosition(float x, float y)
72  {
73  position.x = x;
74  position.y = y;
75  }
76 
77  void setColor(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
78  {
79  color.r = r;
80  color.g = g;
81  color.b = b;
82  color.a = a;
83  }
84 
85  void setUv(float u, float v)
86  {
87  uv.u = u;
88  uv.v = v;
89  }
90 };
91 
92 } // yage
93 
94 #endif
Definition: camera2d.hpp:17
diff --git a/window_8hpp_source.html b/window_8hpp_source.html index bd07355c..668312b7 100644 --- a/window_8hpp_source.html +++ b/window_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,12 +68,11 @@ $(function() {
window.hpp
-
1 /* ----------------------------------------------------------------------------
2  * window.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 WINDOW_HPP
10 #define WINDOW_HPP
11 
12 #include <SDL2/SDL.h>
13 
14 #include <string>
15 
16 namespace yage
17 {
18 
19 // window flags that can change it's appearance
20 enum WindowFlags : unsigned
21 {
22  SHOWN=0x1,
23  HIDDEN=0x2,
24  FULLSCREEN=0x4,
25  BORDERLESS=0x8,
26 };
27 
28 // window wrapper around SDL_Window pointer
29 class Window
30 {
31 public: // member variables
32 private:
33  // window handle
34  SDL_Window *window_=nullptr;
35 
36 public: // member functions
37  Window();
38  // destroys the window handle
39  ~Window();
40 
41  // create the window, initialize the handle and update the width and height
42  void create(const std::string &window_name, int width, int height, unsigned flags=WindowFlags::SHOWN);
43  // swap the buffer
44  void swapBuffer();
45  // clear buffer
46  void clearBuffer();
47 private:
48 };
49 
50 } // yage
51 
52 #endif
Definition: window.hpp:29
-
Definition: camera2d.hpp:17
+
1 /* ----------------------------------------------------------------------------
2  * window.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 WINDOW_HPP
10 #define WINDOW_HPP
11 
12 #include <SDL2/SDL.h>
13 
14 #include <string>
15 
16 namespace yage
17 {
18 
19 // window flags that can change it's appearance
20 enum WindowFlags : unsigned
21 {
22  SHOWN=0x1,
23  HIDDEN=0x2,
24  FULLSCREEN=0x4,
25  BORDERLESS=0x8,
26 };
27 
28 // window wrapper around SDL_Window pointer
29 class Window
30 {
31 public: // member variables
32 private:
33  // window handle
34  SDL_Window *window_=nullptr;
35 
36 public: // member functions
37  Window();
38  // destroys the window handle
39  ~Window();
40 
41  // create the window, initialize the handle and update the width and height
42  void create(const std::string &window_name, int width, int height, unsigned flags=WindowFlags::SHOWN);
43  // swap the buffer
44  void swapBuffer();
45  // clear buffer
46  void clearBuffer();
47 private:
48 };
49 
50 } // yage
51 
52 #endif
Definition: camera2d.hpp:17
diff --git a/yage_8hpp_source.html b/yage_8hpp_source.html index 008aa384..f9ce8365 100644 --- a/yage_8hpp_source.html +++ b/yage_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -71,7 +72,7 @@ $(function() {
-- cgit