From be5d48d2eaed3af76f03297e376f7a67e8a8238f Mon Sep 17 00:00:00 2001 From: TravisBot <> Date: Wed, 20 Dec 2017 18:02:11 +0000 Subject: Rebuilding documentation --- README_8md.html | 4 +- active_8cpp.html | 13 +- active_8h.html | 13 +- active_8h_source.html | 15 +- annotated.html | 4 +- body_8cpp.html | 13 +- body_8h.html | 13 +- body_8h_source.html | 15 +- bug.html | 4 +- camera2d_8cpp.html | 14 +- camera2d_8h.html | 16 +- camera2d_8h_source.html | 100 +++++------- classLogLevel-members.html | 4 +- classLogLevel.html | 4 +- classes.html | 4 +- classyage_1_1Active-members.html | 4 +- classyage_1_1Active.html | 4 +- classyage_1_1Body-members.html | 4 +- classyage_1_1Body.html | 4 +- classyage_1_1Camera2D-members.html | 4 +- classyage_1_1Camera2D.html | 4 +- classyage_1_1Collider-members.html | 4 +- classyage_1_1Collider.html | 4 +- classyage_1_1CollisionBody-members.html | 4 +- classyage_1_1CollisionBody.html | 4 +- classyage_1_1GlslProgram-members.html | 27 ++-- classyage_1_1GlslProgram.html | 112 ++++++++++++-- classyage_1_1GlslProgram.js | 7 +- classyage_1_1Glyph-members.html | 4 +- classyage_1_1Glyph.html | 4 +- classyage_1_1ImageLoader-members.html | 4 +- classyage_1_1ImageLoader.html | 4 +- classyage_1_1InputManager-members.html | 4 +- classyage_1_1InputManager.html | 4 +- classyage_1_1IoManager-members.html | 4 +- classyage_1_1IoManager.html | 4 +- classyage_1_1LogMessage-members.html | 4 +- classyage_1_1LogMessage.html | 4 +- classyage_1_1LogSink-members.html | 4 +- classyage_1_1LogSink.html | 4 +- classyage_1_1Logger-members.html | 4 +- classyage_1_1Logger.html | 4 +- classyage_1_1Matrix-members.html | 4 +- classyage_1_1Matrix.html | 4 +- classyage_1_1ParticleBody-members.html | 4 +- classyage_1_1ParticleBody.html | 4 +- classyage_1_1RectangleCollider-members.html | 4 +- classyage_1_1RectangleCollider.html | 4 +- classyage_1_1RenderBatch-members.html | 4 +- classyage_1_1RenderBatch.html | 4 +- classyage_1_1ResourceManager-members.html | 4 +- classyage_1_1ResourceManager.html | 4 +- classyage_1_1RigidBody-members.html | 4 +- classyage_1_1RigidBody.html | 4 +- classyage_1_1Sprite-members.html | 4 +- classyage_1_1Sprite.html | 4 +- classyage_1_1SpriteBatch-members.html | 4 +- classyage_1_1SpriteBatch.html | 4 +- classyage_1_1SpriteSheet-members.html | 6 +- classyage_1_1SpriteSheet.html | 14 +- classyage_1_1SpriteSheet.js | 2 +- classyage_1_1SyncQueue-members.html | 4 +- classyage_1_1SyncQueue.html | 4 +- classyage_1_1TextureCache-members.html | 4 +- classyage_1_1TextureCache.html | 4 +- classyage_1_1Vector-members.html | 4 +- classyage_1_1Vector.html | 4 +- classyage_1_1Vector2-members.html | 4 +- classyage_1_1Vector2.html | 4 +- classyage_1_1Vector3-members.html | 4 +- classyage_1_1Vector3.html | 4 +- classyage_1_1Vector4-members.html | 4 +- classyage_1_1Vector4.html | 4 +- classyage_1_1Window-members.html | 4 +- classyage_1_1Window.html | 4 +- classyage_1_1details_1_1Row-members.html | 4 +- classyage_1_1details_1_1Row.html | 4 +- collider_8h.html | 13 +- collider_8h_source.html | 13 +- collisionbody_8h.html | 13 +- collisionbody_8h_source.html | 15 +- deprecated.html | 4 +- dir_0a5be4b85c8e2c05f7a9f5a803f53125.html | 8 +- dir_11841e5da2063fc5766a682aee38e289.html | 68 +++++++- dir_48a91ae829881cbedcfc124d2027890d.html | 10 +- dir_a58d7658bbcfd3d3d7296185ebe55c28.html | 26 +++- dir_aa7f86daaaa64c448f636c0e65de2cec.html | 8 +- dir_aa7f86daaaa64c448f636c0e65de2cec.js | 1 - files.html | 156 ++++++++++++------- functions.html | 4 +- functions_b.html | 4 +- functions_c.html | 14 +- functions_d.html | 4 +- functions_e.html | 4 +- functions_f.html | 6 +- functions_func.html | 19 ++- functions_g.html | 4 +- functions_h.html | 4 +- functions_i.html | 7 +- functions_k.html | 4 +- functions_l.html | 4 +- functions_m.html | 4 +- functions_n.html | 4 +- functions_o.html | 4 +- functions_p.html | 4 +- functions_q.html | 4 +- functions_r.html | 4 +- functions_rela.html | 4 +- functions_s.html | 4 +- functions_t.html | 4 +- functions_type.html | 4 +- functions_u.html | 6 +- functions_v.html | 4 +- functions_vars.html | 4 +- functions_w.html | 4 +- functions_x.html | 4 +- functions_y.html | 4 +- functions_z.html | 4 +- functions_~.html | 4 +- globals.html | 4 +- globals_defs.html | 4 +- globals_vars.html | 4 +- glslprogram_8cpp.html | 13 +- glslprogram_8h.html | 13 +- glslprogram_8h_source.html | 86 +++++------ hierarchy.html | 4 +- imageloader_8cpp.html | 14 +- imageloader_8h.html | 16 +- imageloader_8h_source.html | 26 ++-- index.html | 13 +- inputmanager_8cpp.html | 13 +- inputmanager_8h.html | 13 +- inputmanager_8h_source.html | 19 +-- iomanager_8cpp.html | 13 +- iomanager_8h.html | 13 +- iomanager_8h_source.html | 13 +- logger_8cpp.html | 14 +- logger_8h.html | 16 +- logger_8h_source.html | 105 ++++++------- loglevel_8h.html | 13 +- loglevel_8h_source.html | 13 +- logmessage_8cpp.html | 13 +- logmessage_8h.html | 13 +- logmessage_8h_source.html | 15 +- logsink_8cpp.html | 13 +- logsink_8h.html | 13 +- logsink_8h_source.html | 188 +++++++++++------------ math_8h.html | 126 --------------- math_8h_source.html | 138 ----------------- matrix_8dox.html | 4 +- matrix_8h.html | 13 +- matrix_8h_source.html | 13 +- md_yage_physics_README.html | 4 +- namespacemembers.html | 4 +- namespacemembers_enum.html | 4 +- namespacemembers_eval.html | 4 +- namespacemembers_func.html | 4 +- namespacemembers_type.html | 4 +- namespaces.html | 4 +- namespaceyage.html | 8 +- namespaceyage_1_1details.html | 4 +- namespaceyage_1_1matrix.html | 6 +- navtree.js | 4 +- navtreeindex0.js | 36 ++--- navtreeindex1.js | 58 +++---- navtreeindex2.js | 1 + pages.html | 4 +- particlebody_8cpp.html | 13 +- particlebody_8h.html | 13 +- particlebody_8h_source.html | 17 +- physics_8h.html | 13 +- physics_8h_source.html | 25 ++- picopng_8cpp.html | 4 +- picopng_8h.html | 13 +- picopng_8h_source.html | 13 +- rectanglecollider_8cpp.html | 13 +- rectanglecollider_8h.html | 13 +- rectanglecollider_8h_source.html | 15 +- resourcemanager_8cpp.html | 13 +- resourcemanager_8h.html | 13 +- resourcemanager_8h_source.html | 25 +-- rigidbody_8cpp.html | 13 +- rigidbody_8h.html | 13 +- rigidbody_8h_source.html | 15 +- search/all_12.js | 2 +- search/all_13.js | 2 +- search/all_2.js | 8 +- search/all_5.js | 2 +- search/all_8.js | 1 + search/all_b.js | 3 +- search/files_6.js | 1 - search/functions_12.js | 2 +- search/functions_2.js | 6 +- search/functions_5.js | 2 +- search/functions_8.js | 1 + sprite_8cpp.html | 13 +- sprite_8h.html | 13 +- sprite_8h_source.html | 15 +- spritebatch_8cpp.html | 13 +- spritebatch_8h.html | 13 +- spritebatch_8h_source.html | 21 +-- spritesheet_8cpp.html | 17 +- spritesheet_8h.html | 13 +- spritesheet_8h_source.html | 138 ++++++++--------- structyage_1_1Colour-members.html | 4 +- structyage_1_1Colour.html | 4 +- structyage_1_1LogMessage_1_1Meta-members.html | 4 +- structyage_1_1LogMessage_1_1Meta.html | 4 +- structyage_1_1LogSink_1_1Concept-members.html | 4 +- structyage_1_1LogSink_1_1Concept.html | 4 +- structyage_1_1LogSink_1_1Model-members.html | 4 +- structyage_1_1LogSink_1_1Model.html | 4 +- structyage_1_1Position-members.html | 4 +- structyage_1_1Position.html | 4 +- structyage_1_1Texture-members.html | 4 +- structyage_1_1Texture.html | 4 +- structyage_1_1UV-members.html | 4 +- structyage_1_1UV.html | 4 +- structyage_1_1Vertex-members.html | 4 +- structyage_1_1Vertex.html | 4 +- structyage_1_1details_1_1Coordinate-members.html | 4 +- structyage_1_1details_1_1Coordinate.html | 4 +- syncqueue_8h.html | 13 +- syncqueue_8h_source.html | 13 +- texture_8h.html | 13 +- texture_8h_source.html | 13 +- texturecache_8cpp.html | 13 +- texturecache_8h.html | 13 +- texturecache_8h_source.html | 15 +- todo.html | 10 +- todolist_8dox.html | 4 +- vertex_8h.html | 13 +- vertex_8h_source.html | 13 +- window_8cpp.html | 13 +- window_8h.html | 13 +- window_8h_source.html | 13 +- yage_2physics_2README_8md.html | 4 +- yage_8cpp.html | 13 +- yage_8h.html | 13 +- yage_8h_source.html | 57 +++---- 240 files changed, 1626 insertions(+), 1490 deletions(-) delete mode 100644 math_8h.html delete mode 100644 math_8h_source.html diff --git a/README_8md.html b/README_8md.html index bc75078a..d2055364 100644 --- a/README_8md.html +++ b/README_8md.html @@ -30,7 +30,7 @@
YAGE -  v0.3.1 +  v0.1.3
Yet Another Game Engine
@@ -114,7 +114,7 @@ $(document).ready(function(){initNavTree('README_8md.html','');});
+ +


+ +More...

#include "active.h"

@@ -118,13 +122,16 @@ Namespaces

 Project namespace.
 
-
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
+ +


+ +More...

#include "syncqueue.h"
#include <functional>
#include <memory>
@@ -129,13 +133,16 @@ Namespaces  Project namespace.
  -
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
-
2  * active.h
-
3  *
-
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
5  * MIT License, see LICENSE file for more details.
-
6  * ----------------------------------------------------------------------------
-
7  */
-
8 
+Go to the documentation of this file.
1 
9 #ifndef YAGE_UTIL_ACTIVE_H
10 #define YAGE_UTIL_ACTIVE_H
11 
@@ -164,7 +157,7 @@ $(document).ready(function(){initNavTree('active_8h_source.html','');});
std::thread thread_
Definition: active.h:41
static std::unique_ptr< Active > create()
Definition: active.cpp:22
bool running_
Definition: active.h:39
- +
SyncQueue< Callback > queue_
Definition: active.h:40
@@ -173,7 +166,7 @@ $(document).ready(function(){initNavTree('active_8h_source.html','');});
+ +


+ +More...

#include <yage/physics/body.h>
#include <utility>
@@ -119,13 +123,16 @@ Namespaces
 Project namespace.
 
-
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
+ +


+ +More...

#include <math/matrix.h>

Go to the source code of this file.

@@ -126,13 +130,16 @@ Namespaces  Project namespace.
  -
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
-
2  * body.h
-
3  *
-
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
5  * MIT License, see LICENSE file for more details.
-
6  * ----------------------------------------------------------------------------
-
7  */
-
8 
+Go to the documentation of this file.
1 
9 #ifndef YAGE_PHYSICS_BODY_H
10 #define YAGE_PHYSICS_BODY_H
11 
@@ -176,7 +169,7 @@ $(document).ready(function(){initNavTree('body_8h_source.html','');});
Definition: body.h:17
Body(Vector2d position=Vector2d(0, 0), double mass=1, Vector2d velocity=Vector2d(0, 0), bool gravity=false)
Definition: body.cpp:28
Vector2d velocity_
Definition: body.h:31
- +
Vector2< double > Vector2d
Definition of a 2D vector.
Definition: matrix.h:398
Vector2d acceleration_
Definition: body.h:37
double mass_
Definition: body.h:28
@@ -188,7 +181,7 @@ $(document).ready(function(){initNavTree('body_8h_source.html','');});
+ +


+ +More...

#include "camera2d.h"
+#include "glslprogram.h"
#include <glad/glad.h>

@@ -119,13 +124,16 @@ Namespaces

 Project namespace.
 
-
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
-
#include "glslprogram.h"
-#include <glm/glm.hpp>
+ +


+ +More...

+
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>

Go to the source code of this file.

@@ -128,13 +131,16 @@ Namespaces  Project namespace.
  -
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
-
2  * camera2d.h
-
3  *
-
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
5  * MIT License, see LICENSE file for more details.
-
6  * ----------------------------------------------------------------------------
-
7  */
-
8 
-
9 /* ----------------------------------------------------------------------------
-
10  * camera2d.h
-
11  *
-
12  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
13  * MIT License, see LICENSE file for more details.
-
14  * ----------------------------------------------------------------------------
-
15  */
-
16 
-
17 #ifndef YAGE_CAMERA2D_H
-
18 #define YAGE_CAMERA2D_H
-
19 
-
20 #include "glslprogram.h"
-
21 
-
22 #include <glm/glm.hpp>
-
23 #include <glm/gtc/matrix_transform.hpp>
-
24 
-
25 namespace yage
-
26 {
-
27 
-
28 class Camera2D
-
29 {
-
30 private:
-
31  bool update_matrix_ = true;
-
32  float scale_ = 1;
-
33  glm::vec2 position_;
-
34  glm::mat4 camera_matrix_;
-
35  glm::mat4 ortho_matrix_;
-
36 
-
37 public:
-
38  Camera2D(int screen_width = 1280, int screen_height = 720);
-
39 
-
40  void update(GlslProgram &program);
-
41  void move(const glm::vec2 &direction);
-
42 };
-
43 
-
44 } // namespace yage
-
45 
-
46 #endif
-
glm::mat4 ortho_matrix_
Definition: camera2d.h:35
-
float scale_
Definition: camera2d.h:32
-
glm::mat4 camera_matrix_
Definition: camera2d.h:34
-
void update(GlslProgram &program)
Definition: camera2d.cpp:23
+Go to the documentation of this file.
1 
+
9 #ifndef YAGE_CAMERA2D_H
+
10 #define YAGE_CAMERA2D_H
+
11 
+
12 #include <glm/glm.hpp>
+
13 #include <glm/gtc/matrix_transform.hpp>
+
14 
+
15 namespace yage
+
16 {
+
17 
+
18 class GlslProgram;
+
19 
+
20 class Camera2D
+
21 {
+
22 private:
+
23  bool update_matrix_ = 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 
+
32  void update(GlslProgram &program);
+
33  void move(const glm::vec2 &direction);
+
34 };
+
35 
+
36 } // namespace yage
+
37 
+
38 #endif
+
glm::mat4 ortho_matrix_
Definition: camera2d.h:27
+
float scale_
Definition: camera2d.h:24
+
glm::mat4 camera_matrix_
Definition: camera2d.h:26
+
void update(GlslProgram &program)
Definition: camera2d.cpp:24
Definition: glslprogram.h:19
-
bool update_matrix_
Definition: camera2d.h:31
-
glm::vec2 position_
Definition: camera2d.h:33
- -
Definition: camera2d.h:28
-
void move(const glm::vec2 &direction)
Definition: camera2d.cpp:39
-
Camera2D(int screen_width=1280, int screen_height=720)
Definition: camera2d.cpp:16
+
bool update_matrix_
Definition: camera2d.h:23
+
glm::vec2 position_
Definition: camera2d.h:25
+
Definition: camera2d.h:20
+
void move(const glm::vec2 &direction)
Definition: camera2d.cpp:40
+
Camera2D(int screen_width=1280, int screen_height=720)
Definition: camera2d.cpp:17
+ +


+ +More...

#include "texture.h"
#include "texturecache.h"
#include <string>
@@ -128,13 +132,16 @@ Namespaces  Project namespace.
  -
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
-
2  * resourcemanager.h
-
3  *
-
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
5  * MIT License, see LICENSE file for more details.
-
6  * ----------------------------------------------------------------------------
-
7  */
-
8 
-
9 /* ----------------------------------------------------------------------------
-
10  * resourcemanager.h
-
11  *
-
12  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
-
13  * See file LICENSE for more details
-
14  * ----------------------------------------------------------------------------
-
15  */
-
16 
+Go to the documentation of this file.
1 
17 #ifndef RESOURCE_MANAGER_H
18 #define RESOURCE_MANAGER_H
19 
@@ -149,8 +134,8 @@ $(document).ready(function(){initNavTree('resourcemanager_8h_source.html','');})
39 #endif
static TextureCache texture_cache_
Definition: resourcemanager.h:31
Definition: resourcemanager.h:28
- - + +
static Texture getTexture(const std::string &texture_path)
Definition: resourcemanager.cpp:16
Definition: texture.h:17
Definition: texturecache.h:19
@@ -160,7 +145,7 @@ $(document).ready(function(){initNavTree('resourcemanager_8h_source.html','');})
+ +


+ +More...

@@ -118,13 +122,16 @@ Namespaces

 Project namespace.
 
-
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
+ +


+ +More...

#include "particlebody.h"
#include <glm/glm.hpp>
@@ -127,13 +131,16 @@ Namespaces  Project namespace.
  -
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
-
2  * rigidbody.h
-
3  *
-
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
5  * MIT License, see LICENSE file for more details.
-
6  * ----------------------------------------------------------------------------
-
7  */
-
8 
+Go to the documentation of this file.
1 
9 #ifndef YAGE_RIGID_BODY_H
10 #define YAGE_RIGID_BODY_H
11 
@@ -141,14 +134,14 @@ $(document).ready(function(){initNavTree('rigidbody_8h_source.html','');});
RigidBody(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true)
Definition: rigidbody.cpp:14
Definition: rigidbody.h:19
Vector2< double > Vector2d
Definition of a 2D vector.
Definition: matrix.h:398
- +
+ +


+ +More...

#include <yage/core/resourcemanager.h>
#include <yage/core/sprite.h>
#include <yage/core/vertex.h>
@@ -121,13 +125,16 @@ Namespaces  Project namespace.
  -
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
+ +


+ +More...

#include "texture.h"
#include <glad/glad.h>
#include <string>
@@ -128,13 +132,16 @@ Namespaces  Project namespace.
  -
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
-
2  * sprite.h
-
3  *
-
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
5  * MIT License, see LICENSE file for more details.
-
6  * ----------------------------------------------------------------------------
-
7  */
-
8 
+Go to the documentation of this file.
1 
12 #ifndef SPRITE_H
13 #define SPRITE_H
14 
@@ -156,7 +149,7 @@ $(document).ready(function(){initNavTree('sprite_8h_source.html','');});
51 
52 #endif
Sprite()=default
- +
void draw()
Definition: sprite.cpp:71
Texture texture_
Definition: sprite.h:34
GLuint vbo_id_
Definition: sprite.h:33
@@ -175,7 +168,7 @@ $(document).ready(function(){initNavTree('sprite_8h_source.html','');});
+ +


+ +More...

#include <yage/core/spritebatch.h>
#include <algorithm>
#include <stdexcept>
@@ -120,13 +124,16 @@ Namespaces  Project namespace.
  -
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
+ +


+ +More...

#include "vertex.h"
#include <glad/glad.h>
#include <glm/glm.hpp>
@@ -135,13 +139,16 @@ Namespaces  Project namespace.
  -
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
-
2  * spritebatch.h
-
3  *
-
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
5  * MIT License, see LICENSE file for more details.
-
6  * ----------------------------------------------------------------------------
-
7  */
-
8 
+Go to the documentation of this file.
1 
12 #ifndef YAGE_SPRITE_BATCH_H
13 #define YAGE_SPRITE_BATCH_H
14 
@@ -199,8 +192,8 @@ $(document).ready(function(){initNavTree('spritebatch_8h_source.html','');});
94 
95  // adds a sprite to the sprite batch to be rendered later
96  void draw(const yage::Vector4f &destination_rect,
-
97  const yage::Vector4f &uv_rect, GLuint texture, const Colour &colour,
-
98  float depth);
+
97  const yage::Vector4f &uv_rect, GLuint texture,
+
98  const Colour &colour, float depth);
99  // render the batch
100  void render();
101 
@@ -231,10 +224,10 @@ $(document).ready(function(){initNavTree('spritebatch_8h_source.html','');});
GLuint vbo_
Definition: spritebatch.h:76
float depth_
Definition: spritebatch.h:34
GLint offset() const
Definition: spritebatch.h:65
- +
friend SpriteBatch
Definition: spritebatch.h:55
void createRenderBatches()
Definition: spritebatch.cpp:150
- +
GLuint texture_
Definition: spritebatch.h:33
float depth() const
Definition: spritebatch.h:46
Vertex bottom_right_
Definition: spritebatch.h:37
@@ -264,7 +257,7 @@ $(document).ready(function(){initNavTree('spritebatch_8h_source.html','');});
+ +


+ +More...

#include "spritesheet.h"
+#include <rapidjson/document.h>
+#include <yage/core/imageloader.h>
#include <cassert>
#include <fstream>
#include <sstream>
#include <stdexcept>
-#include <rapidjson/document.h>
-#include <yage/core/imageloader.h>
@@ -124,13 +128,16 @@ Namespaces

Namespaces

 Project namespace.
 
-
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
+ +


+ +More...

#include "texture.h"
#include <rapidjson/reader.h>
#include <map>
@@ -140,13 +144,16 @@ Typedefs details::Coordinate > yage::details::SpriteMap   -
+

Detailed Description

+

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

+

MIT License, see LICENSE file for more details.

+
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
-
2  * spritesheet.h
-
3  *
-
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
5  * MIT License, see LICENSE file for more details.
-
6  * ----------------------------------------------------------------------------
-
7  */
-
8 
-
12 #ifndef YAGE_SPRITESHEET_H
-
13 #define YAGE_SPRITESHEET_H
-
14 
-
15 #include "texture.h"
-
16 
-
17 #include <rapidjson/reader.h>
-
18 
-
19 #include <map>
-
20 #include <string>
+Go to the documentation of this file.
1 
+
9 
+
11 #ifndef YAGE_SPRITESHEET_H
+
12 #define YAGE_SPRITESHEET_H
+
13 
+
18 #include "texture.h"
+
19 
+
20 #include <rapidjson/reader.h>
21 
-
22 namespace yage
-
23 {
+
22 #include <map>
+
23 #include <string>
24 
-
25 namespace details
+
25 namespace yage
26 {
27 
-
28 struct Coordinate {
-
29  int x;
-
30  int y;
-
31  int width;
-
32  int height;
-
33 
-
34  Coordinate() = default;
-
35 
-
36  Coordinate(int x_i, int y_i, int width_i, int height_i)
-
37  : x(x_i), y(y_i), width(width_i), height(height_i)
-
38  {
-
39  }
-
40 };
-
41 
-
42 typedef std::map<std::string, details::Coordinate> SpriteMap;
-
43 
-
44 } // namespace details
-
45 
- -
47 {
-
48 public:
-
49  SpriteSheet(std::string pngFileName, std::string jsonFileName);
-
50 
-
51  void sprite(std::string spriteName) const;
-
52  std::string fileContent(std::string jsonFileName) const;
+
28 namespace details
+
29 {
+
30 
+
31 struct Coordinate {
+
32  int x;
+
33  int y;
+
34  int width;
+
35  int height;
+
36 
+
37  Coordinate() = default;
+
38 
+
39  Coordinate(int x_i, int y_i, int width_i, int height_i)
+
40  : x(x_i), y(y_i), width(width_i), height(height_i)
+
41  {
+
42  }
+
43 };
+
44 
+
45 typedef std::map<std::string, details::Coordinate> SpriteMap;
+
46 
+
47 } // namespace details
+
48 
+ +
50 {
+
51 public:
+
52  SpriteSheet(std::string pngFileName, std::string jsonFileName);
53 
-
54 private:
- - -
57 
-
58  details::SpriteMap parseJson(int &width, int &height,
-
59  std::string jsonContent) const;
-
60 };
-
61 
-
62 } // namespace yage
-
63 
-
64 #endif
-
Definition: spritesheet.h:46
-
Coordinate(int x_i, int y_i, int width_i, int height_i)
Definition: spritesheet.h:36
-
SpriteSheet(std::string pngFileName, std::string jsonFileName)
Definition: spritesheet.cpp:29
+
54  void sprite(std::string spriteName) const;
+
55  std::string fileContent(std::string jsonFileName) const;
+
56 
+
57 private:
+ + +
60 
+
61  details::SpriteMap parseJson(int &width, int &height,
+
62  std::string jsonContent) const;
+
63 };
+
64 
+
65 } // namespace yage
+
66 
+
67 #endif
+
Definition: spritesheet.h:49
+
Coordinate(int x_i, int y_i, int width_i, int height_i)
Definition: spritesheet.h:39
+
SpriteSheet(std::string pngFileName, std::string jsonFileName)
Definition: spritesheet.cpp:28
-
int x
Definition: spritesheet.h:29
- -
std::map< std::string, details::Coordinate > SpriteMap
Definition: spritesheet.h:42
-
Texture texture_
Definition: spritesheet.h:55
-
int width
Definition: spritesheet.h:31
+
int x
Definition: spritesheet.h:32
+ +
std::map< std::string, details::Coordinate > SpriteMap
Definition: spritesheet.h:45
+
Texture texture_
Definition: spritesheet.h:58
+
int width
Definition: spritesheet.h:34
void sprite(std::string spriteName) const
-
int height
Definition: spritesheet.h:32
-
std::string fileContent(std::string jsonFileName) const
Definition: spritesheet.cpp:42
+
int height
Definition: spritesheet.h:35
Definition: texture.h:17
-
Definition: spritesheet.h:28
-
int y
Definition: spritesheet.h:30
-
details::SpriteMap parseJson(int &width, int &height, std::string jsonContent) const
Definition: spritesheet.cpp:52
-
details::SpriteMap fileLocations_
Definition: spritesheet.h:56
+
Definition: spritesheet.h:31
+
int y
Definition: spritesheet.h:33
+
std::string fileContent(std::string jsonFileName) const
Definition: spritesheet.cpp:41
+
details::SpriteMap parseJson(int &width, int &height, std::string jsonContent) const
Definition: spritesheet.cpp:51
+
details::SpriteMap fileLocations_
Definition: spritesheet.h:59