From 81653e5758a5a35b6c88e590ef97958073d53e13 Mon Sep 17 00:00:00 2001 From: TravisBot <> Date: Thu, 21 Jun 2018 23:13:17 +0000 Subject: [Travis] Rebuilding documentation --- README_8md.html | 2 +- active_8cpp.html | 2 +- active_8h.html | 2 +- active_8h_source.html | 2 +- annotated.html | 50 +- body_8cpp.html | 2 +- body_8h.html | 2 +- body_8h_source.html | 4 +- bug.html | 2 +- camera_8cpp.html | 2 +- camera_8h.html | 2 +- camera_8h_source.html | 2 +- classes.html | 57 +- classyage_1_1Active-members.html | 2 +- classyage_1_1Active.html | 2 +- classyage_1_1BaseComponent-members.html | 7 +- classyage_1_1BaseComponent.html | 81 +- classyage_1_1BaseComponent.png | Bin 730 -> 650 bytes classyage_1_1BaseSystem-members.html | 107 +++ classyage_1_1BaseSystem.html | 161 ++++ classyage_1_1BaseSystem.png | Bin 0 -> 604 bytes classyage_1_1Body-members.html | 2 +- classyage_1_1Body.html | 2 +- classyage_1_1Camera-members.html | 2 +- classyage_1_1Camera.html | 2 +- classyage_1_1Collider-members.html | 2 +- classyage_1_1Collider.html | 2 +- classyage_1_1CollisionBody-members.html | 2 +- classyage_1_1CollisionBody.html | 2 +- classyage_1_1Component-members.html | 10 +- classyage_1_1Component.html | 64 +- classyage_1_1Component.png | Bin 727 -> 646 bytes classyage_1_1ComponentGroup-members.html | 4 +- classyage_1_1ComponentGroup.html | 36 +- classyage_1_1Engine-members.html | 116 --- classyage_1_1Engine.html | 274 ------- classyage_1_1Engine.png | Bin 583 -> 0 bytes classyage_1_1EntityManager-members.html | 14 +- classyage_1_1EntityManager.html | 155 ++-- classyage_1_1FileLoadException-members.html | 2 +- classyage_1_1FileLoadException.html | 2 +- classyage_1_1ImageLoader-members.html | 2 +- classyage_1_1ImageLoader.html | 2 +- classyage_1_1LogMessage-members.html | 2 +- classyage_1_1LogMessage.html | 2 +- classyage_1_1LogSink-members.html | 2 +- classyage_1_1LogSink.html | 2 +- classyage_1_1Logger-members.html | 2 +- classyage_1_1Logger.html | 2 +- classyage_1_1Matrix-members.html | 2 +- classyage_1_1Matrix.html | 2 +- classyage_1_1NonCopyable-members.html | 2 +- classyage_1_1NonCopyable.html | 12 +- classyage_1_1NonCopyable.png | Bin 807 -> 0 bytes classyage_1_1ParticleBody-members.html | 2 +- classyage_1_1ParticleBody.html | 2 +- classyage_1_1RectangleCollider-members.html | 2 +- classyage_1_1RectangleCollider.html | 2 +- classyage_1_1ResourceManager-members.html | 2 +- classyage_1_1ResourceManager.html | 2 +- classyage_1_1RigidBody-members.html | 2 +- classyage_1_1RigidBody.html | 2 +- classyage_1_1Shader-members.html | 2 +- classyage_1_1Shader.html | 2 +- classyage_1_1Space-members.html | 109 --- classyage_1_1Space.html | 185 ----- classyage_1_1SpriteBatch-members.html | 2 +- classyage_1_1SpriteBatch.html | 2 +- classyage_1_1SyncQueue-members.html | 2 +- classyage_1_1SyncQueue.html | 2 +- classyage_1_1System-members.html | 14 +- classyage_1_1System.html | 74 +- classyage_1_1System.png | Bin 582 -> 602 bytes classyage_1_1TextureCache-members.html | 2 +- classyage_1_1TextureCache.html | 2 +- classyage_1_1Vector-members.html | 2 +- classyage_1_1Vector.html | 2 +- classyage_1_1Vector2-members.html | 2 +- classyage_1_1Vector2.html | 2 +- classyage_1_1Vector3-members.html | 2 +- classyage_1_1Vector3.html | 2 +- classyage_1_1Vector4-members.html | 2 +- classyage_1_1Vector4.html | 2 +- classyage_1_1Window-members.html | 4 +- classyage_1_1Window.html | 10 +- classyage_1_1details_1_1Row-members.html | 2 +- classyage_1_1details_1_1Row.html | 2 +- collider_8h.html | 2 +- collider_8h_source.html | 2 +- collisionbody_8h.html | 2 +- collisionbody_8h_source.html | 2 +- component_8cpp.html | 111 +++ component_8h.html | 134 ++++ component_8h_source.html | 153 ++++ core_8cpp.html | 2 +- core_8h.html | 2 +- core_8h_source.html | 2 +- cube_8h.html | 2 +- cube_8h_source.html | 2 +- dir_059f34b87ae2c2af887b23a7e5e8e88f.html | 2 +- dir_0a5be4b85c8e2c05f7a9f5a803f53125.html | 2 +- dir_11841e5da2063fc5766a682aee38e289.html | 2 +- dir_48a91ae829881cbedcfc124d2027890d.html | 2 +- dir_a58d7658bbcfd3d3d7296185ebe55c28.html | 2 +- dir_aa7f86daaaa64c448f636c0e65de2cec.html | 2 +- dir_b47bccbdb192fb141a0ffded67f346da.html | 24 +- dir_d09e80fdcf0bb585bbe3b7099c52d028.html | 2 +- engine_8cpp.html | 122 ---- engine_8h.html | 133 ---- engine_8h_source.html | 149 ---- entity_8cpp.html | 14 +- entity_8h.html | 29 +- entity_8h_source.html | 126 ++-- exception_8cpp.html | 2 +- exception_8h.html | 2 +- exception_8h_source.html | 2 +- files.html | 21 +- functions.html | 9 +- functions_b.html | 2 +- functions_c.html | 16 +- functions_d.html | 9 +- functions_e.html | 6 +- functions_f.html | 2 +- functions_func.html | 54 +- functions_g.html | 10 +- functions_h.html | 2 +- functions_i.html | 12 +- functions_k.html | 4 +- functions_l.html | 2 +- functions_m.html | 7 +- functions_n.html | 2 +- functions_o.html | 2 +- functions_p.html | 2 +- functions_r.html | 2 +- functions_rela.html | 5 +- functions_s.html | 9 +- functions_t.html | 2 +- functions_type.html | 5 +- functions_u.html | 8 +- functions_v.html | 2 +- functions_vars.html | 19 +- functions_w.html | 2 +- functions_x.html | 2 +- functions_y.html | 2 +- functions_z.html | 2 +- functions_~.html | 5 +- globals.html | 2 +- globals_defs.html | 2 +- globals_eval.html | 2 +- globals_func.html | 2 +- globals_type.html | 2 +- globals_vars.html | 2 +- hierarchy.html | 104 ++- imageloader_8cpp.html | 3 +- imageloader_8h.html | 2 +- imageloader_8h_source.html | 4 +- index.html | 2 +- input_8h.html | 2 +- input_8h_source.html | 2 +- iomanager_8cpp.html | 2 +- iomanager_8h.html | 2 +- iomanager_8h_source.html | 2 +- logger_8cpp.html | 2 +- logger_8h.html | 2 +- logger_8h_source.html | 2 +- logger_8md.html | 2 +- logger_guide.html | 2 +- main_8md.html | 2 +- matrix_8h.html | 3 +- matrix_8h_source.html | 853 +++++++++++----------- matrix_8md.html | 2 +- md_README.html | 2 +- md_docs_matrix.html | 2 +- md_docs_todolist.html | 2 +- md_yage_entity_README.html | 2 +- md_yage_physics_README.html | 2 +- namespacemembers.html | 8 +- namespacemembers_enum.html | 2 +- namespacemembers_eval.html | 2 +- namespacemembers_func.html | 2 +- namespacemembers_type.html | 8 +- namespaces.html | 2 +- namespaceyage.html | 51 +- namespaceyage_1_1IoManager.html | 2 +- namespaceyage_1_1details.html | 2 +- namespaceyage_1_1matrix.html | 2 +- noncopyable_8h.html | 2 +- noncopyable_8h_source.html | 2 +- pages.html | 2 +- particlebody_8cpp.html | 3 +- particlebody_8h.html | 2 +- particlebody_8h_source.html | 10 +- physics_8h.html | 2 +- physics_8h_source.html | 2 +- rectanglecollider_8cpp.html | 2 +- rectanglecollider_8h.html | 2 +- rectanglecollider_8h_source.html | 2 +- resourcemanager_8cpp.html | 2 +- resourcemanager_8h.html | 2 +- resourcemanager_8h_source.html | 2 +- rigidbody_8cpp.html | 2 +- rigidbody_8h.html | 2 +- rigidbody_8h_source.html | 4 +- search/all_0.js | 3 +- search/all_1.js | 3 +- search/all_12.js | 5 +- search/all_13.js | 2 +- search/all_14.js | 4 +- search/all_1a.js | 1 - search/all_2.js | 8 +- search/all_3.js | 3 +- search/all_4.js | 5 +- search/all_6.js | 5 +- search/all_8.js | 7 +- search/all_a.js | 2 +- search/all_c.js | 4 +- search/classes_1.js | 1 + search/classes_3.js | 1 - search/classes_8.js | 3 +- search/classes_c.js | 1 - search/files_2.js | 2 + search/files_3.js | 2 - search/files_a.js | 2 - search/functions_0.js | 2 +- search/functions_11.js | 1 - search/functions_13.js | 2 +- search/functions_19.js | 1 - search/functions_2.js | 2 +- search/functions_3.js | 2 +- search/functions_4.js | 3 +- search/functions_6.js | 1 + search/functions_8.js | 5 +- search/functions_9.js | 2 +- search/functions_b.js | 1 - search/related_1.js | 2 +- search/typedefs_0.js | 3 +- search/typedefs_2.js | 2 +- search/variables_0.js | 3 +- search/variables_2.js | 5 +- search/variables_3.js | 1 + search/variables_6.js | 2 +- shader_8cpp.html | 2 +- shader_8h.html | 2 +- shader_8h_source.html | 2 +- space_8cpp.html | 120 --- space_8h.html | 134 ---- space_8h_source.html | 145 ---- spritebatch_8cpp.html | 3 +- spritebatch_8h.html | 2 +- spritebatch_8h_source.html | 14 +- spritebatch_8md.html | 2 +- spritebatch_guide.html | 2 +- stb__image_8cpp.html | 2 +- stb__image_8h.html | 2 +- stb__image_8h_source.html | 2 +- structMovement.html | 104 --- structstbi__io__callbacks-members.html | 2 +- structstbi__io__callbacks.html | 2 +- structyage_1_1Colour-members.html | 2 +- structyage_1_1Colour.html | 2 +- structyage_1_1LogMessage_1_1Meta-members.html | 2 +- structyage_1_1LogMessage_1_1Meta.html | 2 +- structyage_1_1Position-members.html | 2 +- structyage_1_1Position.html | 2 +- structyage_1_1Texture-members.html | 2 +- structyage_1_1Texture.html | 2 +- structyage_1_1UV-members.html | 2 +- structyage_1_1UV.html | 2 +- structyage_1_1Vertex-members.html | 2 +- structyage_1_1Vertex.html | 2 +- structyage_1_1details_1_1Glyph-members.html | 2 +- structyage_1_1details_1_1Glyph.html | 2 +- structyage_1_1details_1_1RenderBatch-members.html | 2 +- structyage_1_1details_1_1RenderBatch.html | 2 +- syncqueue_8h.html | 2 +- syncqueue_8h_source.html | 2 +- system_8h.html | 20 +- system_8h_source.html | 50 +- texture_8h.html | 2 +- texture_8h_source.html | 2 +- texturecache_8cpp.html | 2 +- texturecache_8h.html | 2 +- texturecache_8h_source.html | 2 +- todo.html | 2 +- todolist_8md.html | 2 +- vertex_8h.html | 2 +- vertex_8h_source.html | 2 +- window_8cpp.html | 2 +- window_8h.html | 2 +- window_8h_source.html | 18 +- yage_2entity_2README_8md.html | 2 +- yage_2physics_2README_8md.html | 2 +- yage_8h.html | 3 +- yage_8h_source.html | 5 +- 294 files changed, 1899 insertions(+), 2974 deletions(-) create mode 100644 classyage_1_1BaseSystem-members.html create mode 100644 classyage_1_1BaseSystem.html create mode 100644 classyage_1_1BaseSystem.png delete mode 100644 classyage_1_1Engine-members.html delete mode 100644 classyage_1_1Engine.html delete mode 100644 classyage_1_1Engine.png delete mode 100644 classyage_1_1NonCopyable.png delete mode 100644 classyage_1_1Space-members.html delete mode 100644 classyage_1_1Space.html create mode 100644 component_8cpp.html create mode 100644 component_8h.html create mode 100644 component_8h_source.html delete mode 100644 engine_8cpp.html delete mode 100644 engine_8h.html delete mode 100644 engine_8h_source.html delete mode 100644 space_8cpp.html delete mode 100644 space_8h.html delete mode 100644 space_8h_source.html delete mode 100644 structMovement.html diff --git a/README_8md.html b/README_8md.html index 521743f6..4bd374c6 100644 --- a/README_8md.html +++ b/README_8md.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/active_8cpp.html b/active_8cpp.html index 60675a80..4e5b38fd 100644 --- a/active_8cpp.html +++ b/active_8cpp.html @@ -112,7 +112,7 @@ Namespaces diff --git a/active_8h.html b/active_8h.html index b0ee55cd..84fc15cf 100644 --- a/active_8h.html +++ b/active_8h.html @@ -123,7 +123,7 @@ Namespaces diff --git a/active_8h_source.html b/active_8h_source.html index afcc00d3..0a9815c7 100644 --- a/active_8h_source.html +++ b/active_8h_source.html @@ -137,7 +137,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/annotated.html b/annotated.html index 62cca990..39615a9e 100644 --- a/annotated.html +++ b/annotated.html @@ -112,37 +112,35 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); |oCColour |oCUV |oCVertex -|oCEngineMain engine class that contains a systems, the main loop and the update function that updates all the systems -|oCEntityManagerManages entities in a space -|oCBaseComponentBase component used to store components -|oCComponentThe main component that is used to make a component from a defined struct -|oCComponentGroupContains a list of all components that belong to a sepecific group, these are then stored in the main entity manager -|oCSpaceSpace that keeps track of all the entities, componenets and runs the systems on the data to update them -|oCSystem -|oCMatrixBase Matrix class used by other similar classes -|oCVector -|oCVector22D Vector class -|oCVector33D Vector class -|oCVector44D Vector class -|oCBody -|oCCollider -|oCCollisionBody -|oCParticleBody -|oCRectangleCollider -|oCRigidBody -|oCShader -|oCSpriteBatch -|oCActive -|oCNonCopyable -|\CSyncQueue -oCMovement -\Cstbi_io_callbacks +|oCBaseComponent +|oCComponent +|oCComponentGroup +|oCEntityManagerHas to keep track of all the different entities and their current state +|oCBaseSystem +|oCSystem +|oCMatrixBase Matrix class used by other similar classes +|oCVector +|oCVector22D Vector class +|oCVector33D Vector class +|oCVector44D Vector class +|oCBody +|oCCollider +|oCCollisionBody +|oCParticleBody +|oCRectangleCollider +|oCRigidBody +|oCShader +|oCSpriteBatch +|oCActive +|oCNonCopyable +|\CSyncQueue +\Cstbi_io_callbacks diff --git a/body_8cpp.html b/body_8cpp.html index 8e4c0753..7296c600 100644 --- a/body_8cpp.html +++ b/body_8cpp.html @@ -113,7 +113,7 @@ Namespaces diff --git a/body_8h.html b/body_8h.html index cdb388e3..3e902685 100644 --- a/body_8h.html +++ b/body_8h.html @@ -120,7 +120,7 @@ Namespaces diff --git a/body_8h_source.html b/body_8h_source.html index c94e9933..270e723b 100644 --- a/body_8h_source.html +++ b/body_8h_source.html @@ -149,7 +149,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
yage::Body::Body
Body(Vector2d position=Vector2d(0, 0), double mass=1, Vector2d velocity=Vector2d(0, 0), bool gravity=false)
Definition: body.cpp:29
yage::Body::velocity_
Vector2d velocity_
Definition: body.h:31
matrix.h
-*- c++ -*-
-
yage::Vector2d
Vector2< double > Vector2d
Definition of a 2D vector.
Definition: matrix.h:398
+
yage::Vector2d
Vector2< double > Vector2d
Definition of a 2D vector.
Definition: matrix.h:394
yage::Body::acceleration_
Vector2d acceleration_
Definition: body.h:37
yage::Body::mass_
double mass_
Definition: body.h:28
yage::Body::update
virtual void update()=0
@@ -157,7 +157,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/bug.html b/bug.html index 6eeb8fbc..1dbfe2e3 100644 --- a/bug.html +++ b/bug.html @@ -87,7 +87,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/camera_8cpp.html b/camera_8cpp.html index b8e62e82..69f51579 100644 --- a/camera_8cpp.html +++ b/camera_8cpp.html @@ -116,7 +116,7 @@ Namespaces diff --git a/camera_8h.html b/camera_8h.html index e2d69f49..40b20dbe 100644 --- a/camera_8h.html +++ b/camera_8h.html @@ -120,7 +120,7 @@ Namespaces diff --git a/camera_8h_source.html b/camera_8h_source.html index 88754814..4872c31e 100644 --- a/camera_8h_source.html +++ b/camera_8h_source.html @@ -127,7 +127,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classes.html b/classes.html index 85818695..dc721953 100644 --- a/classes.html +++ b/classes.html @@ -91,48 +91,47 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
A | B | C | E | F | G | I | L | M | N | P | R | S | T | U | V | W
- - + + + - + + + + - - + + - - - + + - - - - - - - + +
  A  
-
EntityManager (yage)   LogMessage::Meta (yage)   
  S  
-
Vector2 (yage)   
  F  
-
Movement   Vector3 (yage)   
Active (yage)   
  N  
-
Shader (yage)   Vector4 (yage)   
ComponentGroup (yage)   LogMessage (yage)   RenderBatch (yage::details)   
  V  
+
  E  
+
LogSink (yage)   ResourceManager (yage)   
Active (yage)   
  M  
+
RigidBody (yage)   Vector (yage)   
  B  
-
FileLoadException (yage)   Space (yage)   Vertex (yage)   
  G  
-
NonCopyable (yage)   SpriteBatch (yage)   
  W  
+
EntityManager (yage)   Row (yage::details)   Vector2 (yage)   
  F  
+
Matrix (yage)   
  S  
+
Vector3 (yage)   
BaseComponent (yage)   LogMessage::Meta (yage)   Vector4 (yage)   
BaseSystem (yage)   FileLoadException (yage)   
  N  
+
Shader (yage)   Vertex (yage)   
Body (yage)   
  G  
+
SpriteBatch (yage)   
  W  
BaseComponent (yage)   
  P  
-
SyncQueue (yage)   
Body (yage)   Glyph (yage::details)   System (yage)   Window (yage)   
  C  
-
  I  
-
ParticleBody (yage)   
  T  
+
NonCopyable (yage)   SyncQueue (yage)   
Glyph (yage::details)   
  P  
+
System (yage)   Window (yage)   
Camera (yage)   
  I  
+
  T  
  s  
Position (yage)   
Camera (yage)   ImageLoader (yage)   
  R  
-
Texture (yage)   stbi_io_callbacks   
Collider (yage)   
  L  
+
Collider (yage)   ParticleBody (yage)   
CollisionBody (yage)   ImageLoader (yage)   Position (yage)   Texture (yage)   stbi_io_callbacks   
Colour (yage)   
  L  
+
  R  
TextureCache (yage)   
CollisionBody (yage)   RectangleCollider (yage)   
  U  
-
Colour (yage)   Logger (yage)   RenderBatch (yage::details)   
Component (yage)   LogMessage (yage)   ResourceManager (yage)   UV (yage)   
ComponentGroup (yage)   LogSink (yage)   RigidBody (yage)   
  V  
+
Component (yage)   
  U  
  E  
-
  M  
-
Row (yage::details)   
Vector (yage)   
Engine (yage)   Matrix (yage)   
Logger (yage)   RectangleCollider (yage)   
UV (yage)   
A | B | C | E | F | G | I | L | M | N | P | R | S | T | U | V | W
diff --git a/classyage_1_1Active-members.html b/classyage_1_1Active-members.html index 2e10c944..869ea888 100644 --- a/classyage_1_1Active-members.html +++ b/classyage_1_1Active-members.html @@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1Active.html b/classyage_1_1Active.html index cb8cd130..6e87ff91 100644 --- a/classyage_1_1Active.html +++ b/classyage_1_1Active.html @@ -245,7 +245,7 @@ Static Public Member Functions diff --git a/classyage_1_1BaseComponent-members.html b/classyage_1_1BaseComponent-members.html index b901bfcc..4639394c 100644 --- a/classyage_1_1BaseComponent-members.html +++ b/classyage_1_1BaseComponent-members.html @@ -95,12 +95,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

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

- - + + +
Group typedefyage::BaseComponent
group_id_counter_yage::BaseComponentprotectedstatic
EntityManager classyage::BaseComponentfriend
getGroup()=0yage::BaseComponentprotectedpure virtual
group_id_counter_yage::BaseComponentprotectedstatic
diff --git a/classyage_1_1BaseComponent.html b/classyage_1_1BaseComponent.html index 5a8e06b3..0c85c37e 100644 --- a/classyage_1_1BaseComponent.html +++ b/classyage_1_1BaseComponent.html @@ -89,59 +89,88 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
-Public Types | +Protected Member Functions | Static Protected Attributes | +Friends | List of all members
-
yage::BaseComponent Class Reference
+
yage::BaseComponent Class Referenceabstract
-

Base component used to store components. - More...

- -

#include <entity.h>

+

#include <component.h>

Inheritance diagram for yage::BaseComponent:
-yage::Component< Derived > +yage::Component< T >
- - - - + + +

-Public Types

typedef unsigned Group
 Group used to register a specific component internally with the entity manager. More...
 

+Protected Member Functions

virtual GroupId getGroup ()=0
 
- - + + +

Static Protected Attributes

static Group group_id_counter_ = 0
 
static GroupId group_id_counter_ = 0
 
+ + +

+Friends

class EntityManager
 
-

Detailed Description

-

Base component used to store components.

-

Should not be inherited from when declaring a new component. Instead, the Component<Derived> should be used.

-

Member Typedef Documentation

- +

Member Function Documentation

+
+ + + + + +
- + + + +
typedef unsigned yage::BaseComponent::Groupvirtual GroupId yage::BaseComponent::getGroup ()
+
+protectedpure virtual
-

Group used to register a specific component internally with the entity manager.

+
+
+

Friends And Related Function Documentation

+ +
+
+ + + + + +
+ + + + +
friend class EntityManager
+
+friend
+

Member Data Documentation

- +
@@ -149,7 +178,7 @@ Static Protected Attributes @@ -162,13 +191,13 @@ Static Protected Attributes
The documentation for this class was generated from the following files: diff --git a/classyage_1_1BaseComponent.png b/classyage_1_1BaseComponent.png index 08690328..8c82ba7d 100644 Binary files a/classyage_1_1BaseComponent.png and b/classyage_1_1BaseComponent.png differ diff --git a/classyage_1_1BaseSystem-members.html b/classyage_1_1BaseSystem-members.html new file mode 100644 index 00000000..2473a8a5 --- /dev/null +++ b/classyage_1_1BaseSystem-members.html @@ -0,0 +1,107 @@ + + + + + + +Member List + + + + + + + + + + +
+
+
- +
BaseComponent::Group yage::BaseComponent::group_id_counter_ = 0GroupId yage::BaseComponent::group_id_counter_ = 0
+ + + + + + +
+
Yet Another Game Engine
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
yage::BaseSystem Member List
+
+
+ +

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

+ + +
update(double dt, EntityManager &em)=0yage::BaseSystempure virtual
+ + + + diff --git a/classyage_1_1BaseSystem.html b/classyage_1_1BaseSystem.html new file mode 100644 index 00000000..e10ac318 --- /dev/null +++ b/classyage_1_1BaseSystem.html @@ -0,0 +1,161 @@ + + + + + + +yage::BaseSystem Class Reference + + + + + + + + + + +
+
+ + + + + + + +
+
Yet Another Game Engine
+
+
+ + + + + + + + + +
+ +
+ + +
+
+ +
+
yage::BaseSystem Class Referenceabstract
+
+
+ +

#include <system.h>

+
+Inheritance diagram for yage::BaseSystem:
+
+
+ + +yage::System< T > + +
+ + + + +

+Public Member Functions

virtual void update (double dt, EntityManager &em)=0
 
+

Member Function Documentation

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
virtual void yage::BaseSystem::update (double dt,
EntityManagerem 
)
+
+pure virtual
+
+ +
+
+
The documentation for this class was generated from the following file: +
+ + + + diff --git a/classyage_1_1BaseSystem.png b/classyage_1_1BaseSystem.png new file mode 100644 index 00000000..2351b0f6 Binary files /dev/null and b/classyage_1_1BaseSystem.png differ diff --git a/classyage_1_1Body-members.html b/classyage_1_1Body-members.html index a3df9513..8bb794ae 100644 --- a/classyage_1_1Body-members.html +++ b/classyage_1_1Body-members.html @@ -110,7 +110,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/classyage_1_1Body.html b/classyage_1_1Body.html index 2c7588f4..155a1e65 100644 --- a/classyage_1_1Body.html +++ b/classyage_1_1Body.html @@ -425,7 +425,7 @@ Protected Attributes diff --git a/classyage_1_1Camera-members.html b/classyage_1_1Camera-members.html index 58e0bd21..676dfb0f 100644 --- a/classyage_1_1Camera-members.html +++ b/classyage_1_1Camera-members.html @@ -102,7 +102,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1Camera.html b/classyage_1_1Camera.html index 9c656b25..67520ffb 100644 --- a/classyage_1_1Camera.html +++ b/classyage_1_1Camera.html @@ -232,7 +232,7 @@ Public Member Functions diff --git a/classyage_1_1Collider-members.html b/classyage_1_1Collider-members.html index 07066498..7a045539 100644 --- a/classyage_1_1Collider-members.html +++ b/classyage_1_1Collider-members.html @@ -103,7 +103,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1Collider.html b/classyage_1_1Collider.html index 86233b9c..8bdbc5a7 100644 --- a/classyage_1_1Collider.html +++ b/classyage_1_1Collider.html @@ -259,7 +259,7 @@ Protected Attributes diff --git a/classyage_1_1CollisionBody-members.html b/classyage_1_1CollisionBody-members.html index 48aae04d..c652ca33 100644 --- a/classyage_1_1CollisionBody-members.html +++ b/classyage_1_1CollisionBody-members.html @@ -112,7 +112,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1CollisionBody.html b/classyage_1_1CollisionBody.html index def7e8d8..0ee62820 100644 --- a/classyage_1_1CollisionBody.html +++ b/classyage_1_1CollisionBody.html @@ -190,7 +190,7 @@ Additional Inherited Members diff --git a/classyage_1_1Component-members.html b/classyage_1_1Component-members.html index b55d3b97..0ae45e5a 100644 --- a/classyage_1_1Component-members.html +++ b/classyage_1_1Component-members.html @@ -89,19 +89,17 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
-
yage::Component< Derived > Member List
+
yage::Component< T > Member List
-

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

+

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

- - - +
EntityManager classyage::Component< Derived >friend
Group typedefyage::BaseComponent
group_id_counter_yage::BaseComponentprotectedstatic
group_id_counter_yage::BaseComponentprotectedstatic
diff --git a/classyage_1_1Component.html b/classyage_1_1Component.html index 5e9bc236..efff6358 100644 --- a/classyage_1_1Component.html +++ b/classyage_1_1Component.html @@ -4,7 +4,7 @@ -yage::Component< Derived > Class Template Reference +yage::Component< T > Class Template Reference @@ -89,78 +89,36 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
-Friends | List of all members
-
yage::Component< Derived > Class Template Reference
+
yage::Component< T > Class Template Reference
-

The main component that is used to make a component from a defined struct. - More...

- -

#include <entity.h>

+

#include <component.h>

-Inheritance diagram for yage::Component< Derived >:
+Inheritance diagram for yage::Component< T >:
- - -yage::BaseComponent + + +yage::BaseComponent
- - - -

-Friends

class EntityManager
 
- - - - - - -

Additional Inherited Members

- Public Types inherited from yage::BaseComponent
typedef unsigned Group
 Group used to register a specific component internally with the entity manager. More...
 
- Static Protected Attributes inherited from yage::BaseComponent
static Group group_id_counter_ = 0
 
-

Detailed Description

-

template<typename Derived>
-class yage::Component< Derived >

- -

The main component that is used to make a component from a defined struct.

-

A component should only be declared as a struct and should not contain any data itself.

-

Friends And Related Function Documentation

- -
-
-
-template<typename Derived >
- - - - - + +
- - - - -
friend class EntityManager
-
-friend
static GroupId group_id_counter_ = 0
 
-
- -
-

The documentation for this class was generated from the following file: diff --git a/classyage_1_1Component.png b/classyage_1_1Component.png index 53d86906..2cd9397c 100644 Binary files a/classyage_1_1Component.png and b/classyage_1_1Component.png differ diff --git a/classyage_1_1ComponentGroup-members.html b/classyage_1_1ComponentGroup-members.html index 464abb7f..3ba91dc8 100644 --- a/classyage_1_1ComponentGroup-members.html +++ b/classyage_1_1ComponentGroup-members.html @@ -95,11 +95,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

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

- +
EntityManager classyage::ComponentGroupfriend
components_yage::ComponentGroup
diff --git a/classyage_1_1ComponentGroup.html b/classyage_1_1ComponentGroup.html index 401b4308..fcbc6b7d 100644 --- a/classyage_1_1ComponentGroup.html +++ b/classyage_1_1ComponentGroup.html @@ -89,53 +89,41 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
-Friends | +Public Attributes | List of all members
yage::ComponentGroup Class Reference
-

Contains a list of all components that belong to a sepecific group, these are then stored in the main entity manager. - More...

- -

#include <entity.h>

+

#include <component.h>

- - - + + +

-Friends

class EntityManager
 

+Public Attributes

std::vector< std::unique_ptr
+< BaseComponent > > 
components_
 
-

Detailed Description

-

Contains a list of all components that belong to a sepecific group, these are then stored in the main entity manager.

-

Friends And Related Function Documentation

- +

Member Data Documentation

+
- - - - - -
- +
friend class EntityManagerstd::vector<std::unique_ptr<BaseComponent> > yage::ComponentGroup::components_
-
-friend

The documentation for this class was generated from the following file:
diff --git a/classyage_1_1Engine-members.html b/classyage_1_1Engine-members.html deleted file mode 100644 index 7bd7afe6..00000000 --- a/classyage_1_1Engine-members.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - -Member List - - - - - - - - - - -
-
- - - - - - - -
-
Yet Another Game Engine
-
-
- - - - - - -
- All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
- - -
- -
- - -
-
-
-
yage::Engine Member List
-
-
- -

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

- - - - - - - - - - - -
addSpace(std::unique_ptr< Space > space)yage::Engine
init()yage::Engine
instance()yage::Enginestatic
mainLoop()yage::Engine
NonCopyable()=defaultyage::NonCopyableprotected
NonCopyable(const NonCopyable &)=deleteyage::NonCopyableprotected
operator=(const NonCopyable &)=deleteyage::NonCopyableprotected
update()yage::Engine
~Engine()yage::Engine
~NonCopyable()=defaultyage::NonCopyableprotected
- - - - diff --git a/classyage_1_1Engine.html b/classyage_1_1Engine.html deleted file mode 100644 index 9076562e..00000000 --- a/classyage_1_1Engine.html +++ /dev/null @@ -1,274 +0,0 @@ - - - - - - -yage::Engine Class Reference - - - - - - - - - - -
-
- - - - - - - -
-
Yet Another Game Engine
-
-
- - - - - - -
- All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
- - -
- -
- - -
-
-
-Public Member Functions | -Static Public Member Functions | -List of all members
-
-
yage::Engine Class Reference
-
-
- -

Main engine class that contains a systems, the main loop and the update function that updates all the systems. - More...

- -

#include <engine.h>

-
-Inheritance diagram for yage::Engine:
-
-
- - -yage::NonCopyable - -
- - - - - - - - - - - - - - - - -

-Public Member Functions

 ~Engine ()
 
void init ()
 Initialize window and other aspects of the engine. More...
 
void mainLoop ()
 Main game loop of the engine. More...
 
void update ()
 Updates the systems. More...
 
void addSpace (std::unique_ptr< Space > space)
 Add spaces to the engine. More...
 
- - - - -

-Static Public Member Functions

static Engineinstance ()
 Returns the instance of the engine, as there is only one instance of the engine. More...
 
- - - - - - - - - - -

-Additional Inherited Members

- Protected Member Functions inherited from yage::NonCopyable
 NonCopyable ()=default
 
 ~NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
-

Detailed Description

-

Main engine class that contains a systems, the main loop and the update function that updates all the systems.

-

Constructor & Destructor Documentation

- -
-
- - - - - - - -
yage::Engine::~Engine ()
-
- -
-
-

Member Function Documentation

- -
-
- - - - - - - - -
void yage::Engine::addSpace (std::unique_ptr< Spacespace)
-
- -

Add spaces to the engine.

- -
-
- -
-
- - - - - - - -
void yage::Engine::init ()
-
- -

Initialize window and other aspects of the engine.

- -
-
- -
-
- - - - - -
- - - - - - - -
Engine & yage::Engine::instance ()
-
-static
-
- -

Returns the instance of the engine, as there is only one instance of the engine.

- -
-
- -
-
- - - - - - - -
void yage::Engine::mainLoop ()
-
- -

Main game loop of the engine.

- -
-
- -
-
- - - - - - - -
void yage::Engine::update ()
-
- -

Updates the systems.

- -
-
-
The documentation for this class was generated from the following files: -
- - - - diff --git a/classyage_1_1Engine.png b/classyage_1_1Engine.png deleted file mode 100644 index 9d3ec2c2..00000000 Binary files a/classyage_1_1Engine.png and /dev/null differ diff --git a/classyage_1_1EntityManager-members.html b/classyage_1_1EntityManager-members.html index 9ae5971f..f41fb252 100644 --- a/classyage_1_1EntityManager-members.html +++ b/classyage_1_1EntityManager-members.html @@ -95,15 +95,17 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

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

- - - - - + + + + + + +
createEntity()yage::EntityManager
deleteEntity(Entity entity)yage::EntityManager
EntityManager()=defaultyage::EntityManager
EntityManager(Space *space)yage::EntityManager
EntityManager(Space *space, std::size_t n)yage::EntityManager
add_component(Entity entity, BaseComponent *component)yage::EntityManager
component_group_yage::EntityManager
component_masks_yage::EntityManager
create_entity()yage::EntityManager
delete_entity(Entity entity)yage::EntityManager
deleted_yage::EntityManager
is_valid(Entity entity) const yage::EntityManager
diff --git a/classyage_1_1EntityManager.html b/classyage_1_1EntityManager.html index e77a5ea6..ba886e83 100644 --- a/classyage_1_1EntityManager.html +++ b/classyage_1_1EntityManager.html @@ -90,156 +90,149 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Public Member Functions | +Public Attributes | List of all members
yage::EntityManager Class Reference
-

Manages entities in a space. +

Has to keep track of all the different entities and their current state. More...

#include <entity.h>

- - - - - - - - - - - - - - - + + + + + + + + +

Public Member Functions

 EntityManager ()=default
 Default instance of an EntityManager. More...
 
 EntityManager (Space *space)
 Creates an instance of the entity manager, which refers back to the space it was created in and belongs to. More...
 
 EntityManager (Space *space, std::size_t n)
 Creates an instance of the entitiy manager with an initial size. More...
 
Entity createEntity ()
 Creates an Entity and returns the handle to the entity, which can then be used by the user to do operations on it. More...
 
void deleteEntity (Entity entity)
 Delete an entity. More...
 
Entity create_entity ()
 
EntityManagerdelete_entity (Entity entity)
 
bool is_valid (Entity entity) const
 
EntityManageradd_component (Entity entity, BaseComponent *component)
 
+ + + + + + +

+Public Attributes

std::vector< ComponentGroupcomponent_group_
 
std::vector< ComponentMaskcomponent_masks_
 
std::vector< Entitydeleted_
 

Detailed Description

-

Manages entities in a space.

-

Constructor & Destructor Documentation

- +

Has to keep track of all the different entities and their current state.

+

The key actions on an Entity are: deleting, creating.

+

Member Function Documentation

+
- - - - - -
- + - + + + + + + + + + + + +
yage::EntityManager::EntityManager EntityManager & yage::EntityManager::add_component ()Entity entity,
BaseComponentcomponent 
)
-
-default
-

Default instance of an EntityManager.

-
- +
- + - - +
yage::EntityManager::EntityManager Entity yage::EntityManager::create_entity (Spacespace))
-

Creates an instance of the entity manager, which refers back to the space it was created in and belongs to.

-
Parameters
- - -
spaceCurrent space that the EntityManager belongs to.
-
-
-
- +
- + - - - - - - - - - - + + - -
yage::EntityManager::EntityManager EntityManager & yage::EntityManager::delete_entity (Spacespace,
std::size_t n 
Entity entity) )
-

Creates an instance of the entitiy manager with an initial size.

-
Parameters
- - - -
spaceCurrent space that the EntityManager belongs to.
nInitial size of the EntityManager.
-
-
-
-

Member Function Documentation

- +
- + - - + + +
Entity yage::EntityManager::createEntity bool yage::EntityManager::is_valid ()Entity entity) const
-

Creates an Entity and returns the handle to the entity, which can then be used by the user to do operations on it.

-
Returns
The handle to the entity that was created in the space.
+
+
+

Member Data Documentation

+ +
+
+ + + + +
std::vector<ComponentGroup> yage::EntityManager::component_group_
+
- +
- - - - - +
void yage::EntityManager::deleteEntity (Entity entity)std::vector<ComponentMask> yage::EntityManager::component_masks_
-

Delete an entity.

+
+
+ +
+
+ + + + +
std::vector<Entity> yage::EntityManager::deleted_
+
@@ -250,7 +243,7 @@ Public Member Functions
diff --git a/classyage_1_1FileLoadException-members.html b/classyage_1_1FileLoadException-members.html index 837b1edd..5000e8aa 100644 --- a/classyage_1_1FileLoadException-members.html +++ b/classyage_1_1FileLoadException-members.html @@ -100,7 +100,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1FileLoadException.html b/classyage_1_1FileLoadException.html index 913b1974..a18df775 100644 --- a/classyage_1_1FileLoadException.html +++ b/classyage_1_1FileLoadException.html @@ -167,7 +167,7 @@ Public Member Functions diff --git a/classyage_1_1ImageLoader-members.html b/classyage_1_1ImageLoader-members.html index 9063f87a..c1698214 100644 --- a/classyage_1_1ImageLoader-members.html +++ b/classyage_1_1ImageLoader-members.html @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1ImageLoader.html b/classyage_1_1ImageLoader.html index 08a95cdd..006cc38e 100644 --- a/classyage_1_1ImageLoader.html +++ b/classyage_1_1ImageLoader.html @@ -135,7 +135,7 @@ Static Public Member Functions diff --git a/classyage_1_1LogMessage-members.html b/classyage_1_1LogMessage-members.html index 8ede62d4..67384c27 100644 --- a/classyage_1_1LogMessage-members.html +++ b/classyage_1_1LogMessage-members.html @@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1LogMessage.html b/classyage_1_1LogMessage.html index 06b2201e..a4cecd90 100644 --- a/classyage_1_1LogMessage.html +++ b/classyage_1_1LogMessage.html @@ -277,7 +277,7 @@ template<typename T > diff --git a/classyage_1_1LogSink-members.html b/classyage_1_1LogSink-members.html index 62be572c..be550d38 100644 --- a/classyage_1_1LogSink-members.html +++ b/classyage_1_1LogSink-members.html @@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1LogSink.html b/classyage_1_1LogSink.html index e82c5a86..13ffd7bc 100644 --- a/classyage_1_1LogSink.html +++ b/classyage_1_1LogSink.html @@ -249,7 +249,7 @@ template<typename T > diff --git a/classyage_1_1Logger-members.html b/classyage_1_1Logger-members.html index 5be7d12f..7499282e 100644 --- a/classyage_1_1Logger-members.html +++ b/classyage_1_1Logger-members.html @@ -109,7 +109,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1Logger.html b/classyage_1_1Logger.html index 472b4661..9414ba8b 100644 --- a/classyage_1_1Logger.html +++ b/classyage_1_1Logger.html @@ -359,7 +359,7 @@ Static Public Member Functions diff --git a/classyage_1_1Matrix-members.html b/classyage_1_1Matrix-members.html index 7f9306d6..3e1c28b2 100644 --- a/classyage_1_1Matrix-members.html +++ b/classyage_1_1Matrix-members.html @@ -113,7 +113,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1Matrix.html b/classyage_1_1Matrix.html index ceb77d8c..9324c6d0 100644 --- a/classyage_1_1Matrix.html +++ b/classyage_1_1Matrix.html @@ -579,7 +579,7 @@ template<int Rows, int Cols, class Type> diff --git a/classyage_1_1NonCopyable-members.html b/classyage_1_1NonCopyable-members.html index 739cde7f..5fe3d765 100644 --- a/classyage_1_1NonCopyable-members.html +++ b/classyage_1_1NonCopyable-members.html @@ -102,7 +102,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1NonCopyable.html b/classyage_1_1NonCopyable.html index 2d7c2ed8..3304688e 100644 --- a/classyage_1_1NonCopyable.html +++ b/classyage_1_1NonCopyable.html @@ -97,16 +97,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

#include <noncopyable.h>

-
-Inheritance diagram for yage::NonCopyable:
-
-
- - -yage::Engine -yage::System - -
@@ -221,7 +211,7 @@ Protected Member Functions diff --git a/classyage_1_1NonCopyable.png b/classyage_1_1NonCopyable.png deleted file mode 100644 index e7cd0709..00000000 Binary files a/classyage_1_1NonCopyable.png and /dev/null differ diff --git a/classyage_1_1ParticleBody-members.html b/classyage_1_1ParticleBody-members.html index c006faed..75c3eb16 100644 --- a/classyage_1_1ParticleBody-members.html +++ b/classyage_1_1ParticleBody-members.html @@ -111,7 +111,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

Protected Member Functions

diff --git a/classyage_1_1ParticleBody.html b/classyage_1_1ParticleBody.html index b122c5b5..6e2e5f3d 100644 --- a/classyage_1_1ParticleBody.html +++ b/classyage_1_1ParticleBody.html @@ -242,7 +242,7 @@ Additional Inherited Members diff --git a/classyage_1_1RectangleCollider-members.html b/classyage_1_1RectangleCollider-members.html index 4b369aa7..3e0af1d1 100644 --- a/classyage_1_1RectangleCollider-members.html +++ b/classyage_1_1RectangleCollider-members.html @@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1RectangleCollider.html b/classyage_1_1RectangleCollider.html index 8636708d..16d07c95 100644 --- a/classyage_1_1RectangleCollider.html +++ b/classyage_1_1RectangleCollider.html @@ -214,7 +214,7 @@ Additional Inherited Members diff --git a/classyage_1_1ResourceManager-members.html b/classyage_1_1ResourceManager-members.html index edf191f6..26a25920 100644 --- a/classyage_1_1ResourceManager-members.html +++ b/classyage_1_1ResourceManager-members.html @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1ResourceManager.html b/classyage_1_1ResourceManager.html index 7aa5af6f..ed0b281f 100644 --- a/classyage_1_1ResourceManager.html +++ b/classyage_1_1ResourceManager.html @@ -151,7 +151,7 @@ Static Public Member Functions diff --git a/classyage_1_1RigidBody-members.html b/classyage_1_1RigidBody-members.html index edb48d6d..9a6138e8 100644 --- a/classyage_1_1RigidBody-members.html +++ b/classyage_1_1RigidBody-members.html @@ -112,7 +112,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1RigidBody.html b/classyage_1_1RigidBody.html index 53732033..53f9ee7c 100644 --- a/classyage_1_1RigidBody.html +++ b/classyage_1_1RigidBody.html @@ -193,7 +193,7 @@ Additional Inherited Members diff --git a/classyage_1_1Shader-members.html b/classyage_1_1Shader-members.html index b876e245..9afcaacc 100644 --- a/classyage_1_1Shader-members.html +++ b/classyage_1_1Shader-members.html @@ -108,7 +108,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1Shader.html b/classyage_1_1Shader.html index aa0ef535..accfa719 100644 --- a/classyage_1_1Shader.html +++ b/classyage_1_1Shader.html @@ -367,7 +367,7 @@ Public Member Functions diff --git a/classyage_1_1Space-members.html b/classyage_1_1Space-members.html deleted file mode 100644 index b47c64c8..00000000 --- a/classyage_1_1Space-members.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - -Member List - - - - - - - - - - -
-
- - - - - - - -
-
Yet Another Game Engine
-
-
- - - - - - -
- All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
- - -
- -
- - -
-
-
-
yage::Space Member List
-
-
- -

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

- - - - -
createEntity()yage::Space
Space()yage::Space
update()yage::Space
- - - - diff --git a/classyage_1_1Space.html b/classyage_1_1Space.html deleted file mode 100644 index 70de5f4c..00000000 --- a/classyage_1_1Space.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - - - -yage::Space Class Reference - - - - - - - - - - -
-
- - - - - - - -
-
Yet Another Game Engine
-
-
- - - - - - -
- All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
- - -
- -
- - -
-
-
-Public Member Functions | -List of all members
-
-
yage::Space Class Reference
-
-
- -

Space that keeps track of all the entities, componenets and runs the systems on the data to update them. - More...

- -

#include <space.h>

- - - - - - - - - - - -

-Public Member Functions

 Space ()
 Default instance for a space. More...
 
Entity createEntity ()
 Create an entity that will belong to this space, and return the handle to the user. More...
 
void update ()
 Update all the systems. More...
 
-

Detailed Description

-

Space that keeps track of all the entities, componenets and runs the systems on the data to update them.

-

There can be multiple instances of a space, which can be used, for example, for different levels in the game that can be loaded separately, or a game menu that can be loaded above the other spaces when the user presses on pause.

-

Constructor & Destructor Documentation

- -
-
- - - - - - - -
yage::Space::Space ()
-
- -

Default instance for a space.

- -
-
-

Member Function Documentation

- -
-
- - - - - - - -
unsigned yage::Space::createEntity ()
-
- -

Create an entity that will belong to this space, and return the handle to the user.

-

The Entity class itself should not be visible to the user, as the user only needs to worry about the handle when referring to the Entity and changing it.

- -
-
- -
-
- - - - - - - -
void yage::Space::update ()
-
- -

Update all the systems.

- -
-
-
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 index 7ff67a93..101f73c6 100644 --- a/classyage_1_1SpriteBatch-members.html +++ b/classyage_1_1SpriteBatch-members.html @@ -109,7 +109,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1SpriteBatch.html b/classyage_1_1SpriteBatch.html index 00b19365..f372f91c 100644 --- a/classyage_1_1SpriteBatch.html +++ b/classyage_1_1SpriteBatch.html @@ -372,7 +372,7 @@ Static Public Attributes diff --git a/classyage_1_1SyncQueue-members.html b/classyage_1_1SyncQueue-members.html index d5b56a15..5cc83912 100644 --- a/classyage_1_1SyncQueue-members.html +++ b/classyage_1_1SyncQueue-members.html @@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1SyncQueue.html b/classyage_1_1SyncQueue.html index 6c080ebd..5feddbed 100644 --- a/classyage_1_1SyncQueue.html +++ b/classyage_1_1SyncQueue.html @@ -271,7 +271,7 @@ template<typename T> diff --git a/classyage_1_1System-members.html b/classyage_1_1System-members.html index 8e4c47e2..3bfa474d 100644 --- a/classyage_1_1System-members.html +++ b/classyage_1_1System-members.html @@ -89,22 +89,18 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
-
yage::System Member List
+
yage::System< T > Member List
-

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

+

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

- - - - - - + +
init()=0yage::Systempure virtual
NonCopyable()=defaultyage::NonCopyableprotected
NonCopyable(const NonCopyable &)=deleteyage::NonCopyableprotected
operator=(const NonCopyable &)=deleteyage::NonCopyableprotected
update()=0yage::Systempure virtual
~NonCopyable()=defaultyage::NonCopyableprotected
active_mask_yage::System< T >protected
update(double dt, EntityManager &em)=0yage::BaseSystempure virtual
diff --git a/classyage_1_1System.html b/classyage_1_1System.html index 3bf11b42..6470c82b 100644 --- a/classyage_1_1System.html +++ b/classyage_1_1System.html @@ -4,7 +4,7 @@ -yage::System Class Reference +yage::System< T > Class Template Reference @@ -89,84 +89,52 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
-Public Member Functions | +Protected Attributes | List of all members
-
yage::System Class Referenceabstract
+
yage::System< T > Class Template Reference

#include <system.h>

-Inheritance diagram for yage::System:
+Inheritance diagram for yage::System< T >:
- - -yage::NonCopyable + + +yage::BaseSystem
- - - - - + + +

-Public Member Functions

virtual void init ()=0
 
virtual void update ()=0
 

+Protected Attributes

ComponentMask active_mask_
 
- - - - - - - - - + + +

Additional Inherited Members

- Protected Member Functions inherited from yage::NonCopyable
 NonCopyable ()=default
 
 ~NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
- Public Member Functions inherited from yage::BaseSystem
virtual void update (double dt, EntityManager &em)=0
 
-

Member Function Documentation

- +

Member Data Documentation

+
+
+template<typename T >
- -
- - - - +
virtual void yage::System::init ()ComponentMask yage::System< T >::active_mask_
-pure virtual
-
- -
-
- -
-
- - - - +protected
- - - - - - - -
virtual void yage::System::update ()
-
-pure virtual
@@ -179,7 +147,7 @@ Additional Inherited Members
diff --git a/classyage_1_1System.png b/classyage_1_1System.png index dd7bab5e..e73345d6 100644 Binary files a/classyage_1_1System.png and b/classyage_1_1System.png differ diff --git a/classyage_1_1TextureCache-members.html b/classyage_1_1TextureCache-members.html index 61f49f89..adc9759d 100644 --- a/classyage_1_1TextureCache-members.html +++ b/classyage_1_1TextureCache-members.html @@ -100,7 +100,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/classyage_1_1TextureCache.html b/classyage_1_1TextureCache.html index d62e5782..1aa4c6b2 100644 --- a/classyage_1_1TextureCache.html +++ b/classyage_1_1TextureCache.html @@ -169,7 +169,7 @@ Public Member Functions diff --git a/classyage_1_1Vector-members.html b/classyage_1_1Vector-members.html index 101c2266..546ca8ac 100644 --- a/classyage_1_1Vector-members.html +++ b/classyage_1_1Vector-members.html @@ -115,7 +115,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1Vector.html b/classyage_1_1Vector.html index adf9b9c6..d30e430c 100644 --- a/classyage_1_1Vector.html +++ b/classyage_1_1Vector.html @@ -329,7 +329,7 @@ template<int Rows = 2, class Type = double> diff --git a/classyage_1_1Vector2-members.html b/classyage_1_1Vector2-members.html index 4b3c4e38..bfcd611f 100644 --- a/classyage_1_1Vector2-members.html +++ b/classyage_1_1Vector2-members.html @@ -123,7 +123,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1Vector2.html b/classyage_1_1Vector2.html index 204f3b37..41bee7ec 100644 --- a/classyage_1_1Vector2.html +++ b/classyage_1_1Vector2.html @@ -410,7 +410,7 @@ template<typename Type = double> diff --git a/classyage_1_1Vector3-members.html b/classyage_1_1Vector3-members.html index 45eb8b25..0f5c4b39 100644 --- a/classyage_1_1Vector3-members.html +++ b/classyage_1_1Vector3-members.html @@ -124,7 +124,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1Vector3.html b/classyage_1_1Vector3.html index dc8b1483..5a0bb562 100644 --- a/classyage_1_1Vector3.html +++ b/classyage_1_1Vector3.html @@ -401,7 +401,7 @@ template<typename Type = double> diff --git a/classyage_1_1Vector4-members.html b/classyage_1_1Vector4-members.html index e54bfba8..ec419bc3 100644 --- a/classyage_1_1Vector4-members.html +++ b/classyage_1_1Vector4-members.html @@ -126,7 +126,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1Vector4.html b/classyage_1_1Vector4.html index 9db4de15..0627ad33 100644 --- a/classyage_1_1Vector4.html +++ b/classyage_1_1Vector4.html @@ -442,7 +442,7 @@ template<typename Type = double> diff --git a/classyage_1_1Window-members.html b/classyage_1_1Window-members.html index 88913b48..d4dbf0e1 100644 --- a/classyage_1_1Window-members.html +++ b/classyage_1_1Window-members.html @@ -98,7 +98,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); clearBuffer()yage::Window create(std::string window_name, int width, int height)yage::Window hide()yage::Window - keyPressed(key k)yage::Window + keyPressed(key k) const yage::Window operator=(const Window &)=deleteyage::Window operator=(Window &&)=deleteyage::Window pollEvents() const yage::Window @@ -112,7 +112,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classyage_1_1Window.html b/classyage_1_1Window.html index e115ec6a..214c755d 100644 --- a/classyage_1_1Window.html +++ b/classyage_1_1Window.html @@ -132,8 +132,8 @@ Public Member Functions   void pollEvents () const   -bool keyPressed (key k) -  +bool keyPressed (key k) const + 

Constructor & Destructor Documentation

@@ -293,7 +293,7 @@ Public Member Functions - +
@@ -302,7 +302,7 @@ Public Member Functions - +
( key  k) const
@@ -428,7 +428,7 @@ Public Member Functions
diff --git a/classyage_1_1details_1_1Row-members.html b/classyage_1_1details_1_1Row-members.html index e76b03ab..1bd1ca23 100644 --- a/classyage_1_1details_1_1Row-members.html +++ b/classyage_1_1details_1_1Row-members.html @@ -101,7 +101,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/classyage_1_1details_1_1Row.html b/classyage_1_1details_1_1Row.html index fdaf1dab..cda7f0ff 100644 --- a/classyage_1_1details_1_1Row.html +++ b/classyage_1_1details_1_1Row.html @@ -203,7 +203,7 @@ template<int Rows, int Cols, class Type > diff --git a/collider_8h.html b/collider_8h.html index 61ccd56d..5b251de4 100644 --- a/collider_8h.html +++ b/collider_8h.html @@ -120,7 +120,7 @@ Namespaces diff --git a/collider_8h_source.html b/collider_8h_source.html index 0c1045a7..f6d014fd 100644 --- a/collider_8h_source.html +++ b/collider_8h_source.html @@ -132,7 +132,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/collisionbody_8h.html b/collisionbody_8h.html index 838cd3b2..43afff2a 100644 --- a/collisionbody_8h.html +++ b/collisionbody_8h.html @@ -120,7 +120,7 @@ Namespaces diff --git a/collisionbody_8h_source.html b/collisionbody_8h_source.html index 1374863e..6cc5a64a 100644 --- a/collisionbody_8h_source.html +++ b/collisionbody_8h_source.html @@ -116,7 +116,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/component_8cpp.html b/component_8cpp.html new file mode 100644 index 00000000..9eeac54e --- /dev/null +++ b/component_8cpp.html @@ -0,0 +1,111 @@ + + + + + + +yage/entity/component.cpp File Reference + + + + + + + + + + +
+
+ + + + + + + +
+
Yet Another Game Engine
+
+
+ + + + + + +
+ All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
+ + +
+ +
+ + +
+
+
+Namespaces
+
+
component.cpp File Reference
+
+
+
#include "component.h"
+
+ + + + +

+Namespaces

 yage
 Project namespace.
 
+
+ + + + diff --git a/component_8h.html b/component_8h.html new file mode 100644 index 00000000..447b868b --- /dev/null +++ b/component_8h.html @@ -0,0 +1,134 @@ + + + + + + +yage/entity/component.h File Reference + + + + + + + + + + +
+
+ + + + + + + +
+
Yet Another Game Engine
+
+
+ + + + + + +
+ All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
+ + +
+ +
+ + +
+
+
+Classes | +Namespaces | +Typedefs
+
+
component.h File Reference
+
+
+
#include <bitset>
+#include <memory>
+#include <vector>
+
+

Go to the source code of this file.

+ + + + + + + + +

+Classes

class  yage::BaseComponent
 
class  yage::Component< T >
 
class  yage::ComponentGroup
 
+ + + + +

+Namespaces

 yage
 Project namespace.
 
+ + + + + + +

+Typedefs

typedef std::bitset< 64 > yage::ComponentMask
 The component mask represents all the components that the entity is currently attached to. More...
 
typedef unsigned int yage::GroupId
 
+
+ + + + diff --git a/component_8h_source.html b/component_8h_source.html new file mode 100644 index 00000000..7ce16e34 --- /dev/null +++ b/component_8h_source.html @@ -0,0 +1,153 @@ + + + + + + +yage/entity/component.h Source File + + + + + + + + + + +
+
+ + + + + + + +
+
Yet Another Game Engine
+
+
+ + + + + + +
+ All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
+ + +
+ +
+ + +
+
+
+
component.h
+
+
+Go to the documentation of this file.
1 #pragma once
+
2 
+
3 #include <bitset>
+
4 #include <memory>
+
5 #include <vector>
+
6 
+
7 namespace yage
+
8 {
+
9 
+
14 typedef std::bitset<64> ComponentMask;
+
15 
+
16 typedef unsigned int GroupId;
+
17 
+ +
19 {
+
20 protected:
+
21  virtual GroupId getGroup() = 0;
+ +
23 
+
24 private:
+
25  friend class EntityManager;
+
26 };
+
27 
+
28 template <typename T>
+
29 class Component : public BaseComponent
+
30 {
+
31  GroupId getGroup() override;
+
32 };
+
33 
+ +
35 {
+
36 public:
+
37  std::vector<std::unique_ptr<BaseComponent>> components_;
+
38 };
+
39 
+
40 template <typename T>
+ +
42 {
+
43  static GroupId group_id = group_id_counter_++;
+
44  return group_id;
+
45 }
+
46 
+
47 } // namespace yage
+
Definition: component.h:18
+
Has to keep track of all the different entities and their current state.
Definition: entity.h:21
+
unsigned int GroupId
Definition: component.h:16
+
virtual GroupId getGroup()=0
+
std::vector< std::unique_ptr< BaseComponent > > components_
Definition: component.h:37
+
Definition: component.h:34
+
static GroupId group_id_counter_
Definition: component.h:22
+
Definition: component.h:29
+
std::bitset< 64 > ComponentMask
The component mask represents all the components that the entity is currently attached to...
Definition: component.h:14
+
+ + + + diff --git a/core_8cpp.html b/core_8cpp.html index ef1754b9..19b1772e 100644 --- a/core_8cpp.html +++ b/core_8cpp.html @@ -127,7 +127,7 @@ Functions diff --git a/core_8h.html b/core_8h.html index 0429295e..bd9e2102 100644 --- a/core_8h.html +++ b/core_8h.html @@ -125,7 +125,7 @@ Functions diff --git a/core_8h_source.html b/core_8h_source.html index 85d91d09..6f6be09c 100644 --- a/core_8h_source.html +++ b/core_8h_source.html @@ -109,7 +109,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/cube_8h.html b/cube_8h.html index 1eda016d..5992537d 100644 --- a/cube_8h.html +++ b/cube_8h.html @@ -145,7 +145,7 @@ Variables diff --git a/cube_8h_source.html b/cube_8h_source.html index e74ca4d5..c5eecb43 100644 --- a/cube_8h_source.html +++ b/cube_8h_source.html @@ -110,7 +110,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/dir_059f34b87ae2c2af887b23a7e5e8e88f.html b/dir_059f34b87ae2c2af887b23a7e5e8e88f.html index 590a3757..36fc8a7e 100644 --- a/dir_059f34b87ae2c2af887b23a7e5e8e88f.html +++ b/dir_059f34b87ae2c2af887b23a7e5e8e88f.html @@ -107,7 +107,7 @@ Files diff --git a/dir_0a5be4b85c8e2c05f7a9f5a803f53125.html b/dir_0a5be4b85c8e2c05f7a9f5a803f53125.html index a677c6a5..0362521a 100644 --- a/dir_0a5be4b85c8e2c05f7a9f5a803f53125.html +++ b/dir_0a5be4b85c8e2c05f7a9f5a803f53125.html @@ -112,7 +112,7 @@ Files diff --git a/dir_11841e5da2063fc5766a682aee38e289.html b/dir_11841e5da2063fc5766a682aee38e289.html index 9a757ded..0668a2dc 100644 --- a/dir_11841e5da2063fc5766a682aee38e289.html +++ b/dir_11841e5da2063fc5766a682aee38e289.html @@ -169,7 +169,7 @@ Files diff --git a/dir_48a91ae829881cbedcfc124d2027890d.html b/dir_48a91ae829881cbedcfc124d2027890d.html index b6fb2e6d..e4a8412e 100644 --- a/dir_48a91ae829881cbedcfc124d2027890d.html +++ b/dir_48a91ae829881cbedcfc124d2027890d.html @@ -107,7 +107,7 @@ Files diff --git a/dir_a58d7658bbcfd3d3d7296185ebe55c28.html b/dir_a58d7658bbcfd3d3d7296185ebe55c28.html index 1e091025..759b0c39 100644 --- a/dir_a58d7658bbcfd3d3d7296185ebe55c28.html +++ b/dir_a58d7658bbcfd3d3d7296185ebe55c28.html @@ -135,7 +135,7 @@ Files diff --git a/dir_aa7f86daaaa64c448f636c0e65de2cec.html b/dir_aa7f86daaaa64c448f636c0e65de2cec.html index a8bb4609..267a026d 100644 --- a/dir_aa7f86daaaa64c448f636c0e65de2cec.html +++ b/dir_aa7f86daaaa64c448f636c0e65de2cec.html @@ -95,7 +95,7 @@ Files diff --git a/dir_b47bccbdb192fb141a0ffded67f346da.html b/dir_b47bccbdb192fb141a0ffded67f346da.html index 82ba2dc9..d41827cd 100644 --- a/dir_b47bccbdb192fb141a0ffded67f346da.html +++ b/dir_b47bccbdb192fb141a0ffded67f346da.html @@ -87,39 +87,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); - - + - - + - - - - - - - - -

Files

file  engine.cpp
 
-

-*- c++ -*-

file  component.cpp
 
file  engine.h [code]
 
-

-*- c++ -*-

file  component.h [code]
 
file  entity.cpp
 
-

-*- c++ -*-

 
file  entity.h [code]
 
-

-*- c++ -*-

 
file  space.cpp
 
-

-*- c++ -*-

 
file  space.h [code]
 
-

-*- c++ -*-

 
file  system.h [code]
 
-

-*- c++ -*-

 
diff --git a/dir_d09e80fdcf0bb585bbe3b7099c52d028.html b/dir_d09e80fdcf0bb585bbe3b7099c52d028.html index ae4bfe4d..3be3224b 100644 --- a/dir_d09e80fdcf0bb585bbe3b7099c52d028.html +++ b/dir_d09e80fdcf0bb585bbe3b7099c52d028.html @@ -107,7 +107,7 @@ Files diff --git a/engine_8cpp.html b/engine_8cpp.html deleted file mode 100644 index 54db82b7..00000000 --- a/engine_8cpp.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - -yage/entity/engine.cpp File Reference - - - - - - - - - - -
-
- - - - - - - -
-
Yet Another Game Engine
-
-
- - - - - - -
- All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
- - -
- -
- - -
-
-
-Namespaces
-
-
engine.cpp File Reference
-
-
- -


-

-*- c++ -*- -More...

-
#include "engine.h"
-#include "../core/core.h"
-#include "space.h"
-
- - - - -

-Namespaces

 yage
 Project namespace.
 
-

Detailed Description

-

-

-*- c++ -*-

-

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.

-
- - - - diff --git a/engine_8h.html b/engine_8h.html deleted file mode 100644 index 4ef8b415..00000000 --- a/engine_8h.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - -yage/entity/engine.h File Reference - - - - - - - - - - -
-
- - - - - - - -
-
Yet Another Game Engine
-
-
- - - - - - -
- All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
- - -
- -
- - -
-
-
-Classes | -Namespaces
-
-
engine.h File Reference
-
-
- -


-

-*- c++ -*- -More...

-
#include "system.h"
-#include "../core/window.h"
-#include "../util/noncopyable.h"
-#include <memory>
-#include <vector>
-
-

Go to the source code of this file.

- - - - - -

-Classes

class  yage::Engine
 Main engine class that contains a systems, the main loop and the update function that updates all the systems. More...
 
- - - - -

-Namespaces

 yage
 Project namespace.
 
-

Detailed Description

-

-

-*- c++ -*-

-

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.

-
- - - - diff --git a/engine_8h_source.html b/engine_8h_source.html deleted file mode 100644 index dde5fcff..00000000 --- a/engine_8h_source.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - -yage/entity/engine.h Source File - - - - - - - - - - -
-
- - - - - - - -
-
Yet Another Game Engine
-
-
- - - - - - -
- All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
- - -
- -
- - -
-
-
-
engine.h
-
-
-Go to the documentation of this file.
1 
-
10 #pragma once
-
11 
-
12 #include "system.h"
-
13 
-
14 #include "../core/window.h"
-
15 #include "../util/noncopyable.h"
-
16 
-
17 #include <memory>
-
18 #include <vector>
-
19 
-
20 namespace yage
-
21 {
-
22 
-
23 class Space;
-
24 
-
29 class Engine : public NonCopyable
-
30 {
-
31 public:
-
32  ~Engine();
-
33 
-
35  void init();
-
36 
-
38  void mainLoop();
-
39 
-
41  void update();
-
42 
-
44  void addSpace(std::unique_ptr<Space> space);
-
45 
-
48  static Engine &instance();
-
49 
-
50 private:
-
52  Window window_;
-
53 
-
55  std::vector<std::unique_ptr<Space>> spaces_;
-
56 };
-
57 
-
58 } // namespace yage
-
void addSpace(std::unique_ptr< Space > space)
Add spaces to the engine.
Definition: engine.cpp:49
-
static Engine & instance()
Returns the instance of the engine, as there is only one instance of the engine.
Definition: engine.cpp:54
-
Definition: window.h:30
-
Main engine class that contains a systems, the main loop and the update function that updates all the...
Definition: engine.h:29
-
Definition: noncopyable.h:15
-
void update()
Updates the systems.
Definition: engine.cpp:42
-
void init()
Initialize window and other aspects of the engine.
Definition: engine.cpp:24
-
void mainLoop()
Main game loop of the engine.
Definition: engine.cpp:30
-
-*- c++ -*-
-
~Engine()
Definition: engine.cpp:19
-
- - - - diff --git a/entity_8cpp.html b/entity_8cpp.html index 095f9873..7c937756 100644 --- a/entity_8cpp.html +++ b/entity_8cpp.html @@ -92,11 +92,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
entity.cpp File Reference
- -


-

-*- c++ -*- -More...

#include "entity.h"
+#include "component.h"
#include <algorithm>

@@ -105,15 +102,10 @@ Namespaces

 Project namespace.
 
-

Detailed Description

-

-

-*- c++ -*-

-

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.

-
+ diff --git a/entity_8h.html b/entity_8h.html index 29f986c0..bab395f4 100644 --- a/entity_8h.html +++ b/entity_8h.html @@ -94,28 +94,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
entity.h File Reference
- -


-

-*- c++ -*- -More...

-
#include <memory>
-#include <vector>
+
#include <vector>
+#include "component.h"

Go to the source code of this file.

- - - - - - - - - - +

Classes

class  yage::EntityManager
 Manages entities in a space. More...
 
class  yage::BaseComponent
 Base component used to store components. More...
 
class  yage::Component< Derived >
 The main component that is used to make a component from a defined struct. More...
 
class  yage::ComponentGroup
 Contains a list of all components that belong to a sepecific group, these are then stored in the main entity manager. More...
 Has to keep track of all the different entities and their current state. More...
 
+

@@ -127,17 +114,13 @@ Namespaces

Typedefs

typedef unsigned int yage::Entity
 The entity is currently just an unsigned integer, which may change to a class in the future. More...
 
-

Detailed Description

-

-

-*- c++ -*-

-

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.

-
+
diff --git a/entity_8h_source.html b/entity_8h_source.html index cadf0a82..5ebbca35 100644 --- a/entity_8h_source.html +++ b/entity_8h_source.html @@ -90,94 +90,52 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
entity.h
-Go to the documentation of this file.
1 
-
10 #pragma once
-
11 
-
12 #include <memory>
-
13 #include <vector>
-
14 
-
15 namespace yage
-
16 {
-
17 
-
18 class Space;
- -
20 
-
21 typedef unsigned int Entity;
-
22 
- -
26 {
-
27 public:
-
30  EntityManager() = default;
+Go to the documentation of this file.
1 #pragma once
+
2 
+
3 #include <vector>
+
4 
+
5 #include "component.h"
+
6 
+
7 namespace yage
+
8 {
+
9 
+
14 typedef unsigned int Entity;
+
15 
+ +
22 {
+
23 public:
+ + +
26  bool is_valid(Entity entity) const;
+
27  EntityManager &add_component(Entity entity, BaseComponent *component);
+
28 
+
29 private:
+
30  Entity update_next_entity();
31 
-
37  EntityManager(Space *space);
-
38 
-
44  EntityManager(Space *space, std::size_t n);
-
45 
- -
52 
-
55  void deleteEntity(Entity entity);
-
56 
-
57 private:
-
60  Entity next_entity_ = 0;
-
61 
-
64  Space *space_ = nullptr;
-
65 
-
68  std::vector<Entity> entities_;
-
69 
-
73  std::vector<std::unique_ptr<ComponentGroup>> components;
-
74 };
-
75 
- -
82 {
-
83 public:
-
87  typedef unsigned Group;
-
88 
-
89 protected:
- -
91 };
-
92 
-
98 template <typename Derived>
-
99 class Component : public BaseComponent
-
100 {
-
101 private:
-
102  friend class EntityManager;
-
103 
-
104  BaseComponent::Group group();
-
105 };
-
106 
- -
111 {
-
112 private:
-
113  friend class EntityManager;
-
114 
-
115  std::vector<BaseComponent *> components_;
-
116 };
-
117 
-
118 // Template definitions
-
119 
-
120 template <typename Derived>
- -
122 {
-
123  static Group group_id = group_id_counter_++;
-
124  return group_id;
-
125 }
-
126 
-
127 } // namespace yage
-
Base component used to store components.
Definition: entity.h:81
-
Manages entities in a space.
Definition: entity.h:25
-
unsigned Group
Group used to register a specific component internally with the entity manager.
Definition: entity.h:87
-
Entity createEntity()
Creates an Entity and returns the handle to the entity, which can then be used by the user to do oper...
Definition: entity.cpp:26
-
unsigned int Entity
Definition: entity.h:19
-
EntityManager()=default
Default instance of an EntityManager.
-
Contains a list of all components that belong to a sepecific group, these are then stored in the main...
Definition: entity.h:110
-
static Group group_id_counter_
Definition: entity.h:90
-
void deleteEntity(Entity entity)
Delete an entity.
Definition: entity.cpp:33
-
The main component that is used to make a component from a defined struct.
Definition: entity.h:99
-
Space that keeps track of all the entities, componenets and runs the systems on the data to update th...
Definition: space.h:34
+
32  Entity next_entity_ = 0;
+
33 
+
34 public:
+
35  std::vector<ComponentGroup> component_group_;
+
36  std::vector<ComponentMask> component_masks_;
+
37  std::vector<Entity> deleted_;
+
38 };
+
39 
+
40 } // namespace yage
+
EntityManager & add_component(Entity entity, BaseComponent *component)
Definition: entity.cpp:32
+
Definition: component.h:18
+
std::vector< ComponentGroup > component_group_
Definition: entity.h:35
+
Has to keep track of all the different entities and their current state.
Definition: entity.h:21
+
std::vector< Entity > deleted_
Definition: entity.h:37
+
std::vector< ComponentMask > component_masks_
Definition: entity.h:36
+
Entity create_entity()
Definition: entity.cpp:10
+
unsigned int Entity
The entity is currently just an unsigned integer, which may change to a class in the future...
Definition: entity.h:14
+
EntityManager & delete_entity(Entity entity)
Definition: entity.cpp:17
+ +
bool is_valid(Entity entity) const
Definition: entity.cpp:23
diff --git a/exception_8cpp.html b/exception_8cpp.html index 4b26646c..43f6bdda 100644 --- a/exception_8cpp.html +++ b/exception_8cpp.html @@ -112,7 +112,7 @@ Namespaces
diff --git a/exception_8h.html b/exception_8h.html index fe3d00da..ba9934d9 100644 --- a/exception_8h.html +++ b/exception_8h.html @@ -121,7 +121,7 @@ Namespaces diff --git a/exception_8h_source.html b/exception_8h_source.html index c589fdac..04d8ce66 100644 --- a/exception_8h_source.html +++ b/exception_8h_source.html @@ -117,7 +117,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/files.html b/files.html index 812c6d2f..fd0c5d1a 100644 --- a/files.html +++ b/files.html @@ -139,20 +139,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');  |\*vertex.h

-*- c++ -*-  o-entity - |o*engine.cpp


-

-*- c++ -*- - |o*engine.h


-

-*- c++ -*- - |o*entity.cpp


-

-*- c++ -*- - |o*entity.h


-

-*- c++ -*- - |o*space.cpp


-

-*- c++ -*- - |o*space.h


-

-*- c++ -*- - |\*system.h


-

-*- c++ -*- + |o*component.cpp + |o*component.h + |o*entity.cpp + |o*entity.h + |\*system.h  o-math  |\*matrix.h


-*- c++ -*- @@ -204,7 +195,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

diff --git a/functions.html b/functions.html index fcc34ad5..5696335a 100644 --- a/functions.html +++ b/functions.html @@ -134,11 +134,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • Active() : yage::Active
  • +
  • active_mask_ +: yage::System< T > +
  • add() : yage::Logger
  • -
  • addSpace() -: yage::Engine +
  • add_component() +: yage::EntityManager
  • applyForce() : yage::Body @@ -148,7 +151,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_b.html b/functions_b.html index 583baf83..aaaf7758 100644 --- a/functions_b.html +++ b/functions_b.html @@ -145,7 +145,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_c.html b/functions_c.html index 54ab9b50..f2c4d17e 100644 --- a/functions_c.html +++ b/functions_c.html @@ -156,19 +156,27 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • colSize() : yage::Matrix< Rows, Cols, Type >
  • +
  • component_group_ +: yage::EntityManager +
  • +
  • component_masks_ +: yage::EntityManager +
  • +
  • components_ +: yage::ComponentGroup +
  • create() : yage::Active , yage::Window
  • -
  • createEntity() -: yage::EntityManager -, yage::Space +
  • create_entity() +: yage::EntityManager
  • diff --git a/functions_d.html b/functions_d.html index efdf2416..22188e6e 100644 --- a/functions_d.html +++ b/functions_d.html @@ -128,8 +128,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • data_ : yage::Matrix< Rows, Cols, Type >
  • -
  • deleteEntity() -: yage::EntityManager +
  • delete_entity() +: yage::EntityManager +
  • +
  • deleted_ +: yage::EntityManager
  • depth : yage::details::Glyph @@ -144,7 +147,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_e.html b/functions_e.html index d643fa8b..f27ecce9 100644 --- a/functions_e.html +++ b/functions_e.html @@ -130,9 +130,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); , yage::SpriteBatch
  • EntityManager -: yage::Component< Derived > -, yage::ComponentGroup -, yage::EntityManager +: yage::BaseComponent
  • eof : stbi_io_callbacks @@ -141,7 +139,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_f.html b/functions_f.html index 90e16b88..e3de6de0 100644 --- a/functions_f.html +++ b/functions_f.html @@ -141,7 +141,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_func.html b/functions_func.html index 6a91da4b..a3f0afa6 100644 --- a/functions_func.html +++ b/functions_func.html @@ -131,8 +131,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • add() : yage::Logger
  • -
  • addSpace() -: yage::Engine +
  • add_component() +: yage::EntityManager
  • applyForce() : yage::Body @@ -182,16 +182,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : yage::Active , yage::Window
  • -
  • createEntity() -: yage::EntityManager -, yage::Space +
  • create_entity() +: yage::EntityManager
  • - d -

    @@ -224,6 +220,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • getCol() : yage::Matrix< Rows, Cols, Type >
  • +
  • getGroup() +: yage::BaseComponent +
  • getRow() : yage::Matrix< Rows, Cols, Type >
  • @@ -245,24 +244,22 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    - i -

    - k -

    @@ -284,9 +281,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    - m -

    @@ -440,18 +431,16 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    - u -

    @@ -533,9 +522,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ~CollisionBody() : yage::CollisionBody
  • -
  • ~Engine() -: yage::Engine -
  • ~LogMessage() : yage::LogMessage
  • @@ -555,7 +541,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_g.html b/functions_g.html index b18b5e7f..372206d9 100644 --- a/functions_g.html +++ b/functions_g.html @@ -131,6 +131,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • getCol() : yage::Matrix< Rows, Cols, Type >
  • +
  • getGroup() +: yage::BaseComponent +
  • getRow() : yage::Matrix< Rows, Cols, Type >
  • @@ -147,17 +150,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • gravity_ : yage::Body
  • -
  • Group -: yage::BaseComponent -
  • group_id_counter_ -: yage::BaseComponent +: yage::BaseComponent
  • diff --git a/functions_h.html b/functions_h.html index ec7480b0..9aca5846 100644 --- a/functions_h.html +++ b/functions_h.html @@ -135,7 +135,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_i.html b/functions_i.html index 8b684cdf..8dd51587 100644 --- a/functions_i.html +++ b/functions_i.html @@ -128,23 +128,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • id : yage::Texture
  • -
  • init() -: yage::Engine -, yage::System -
  • inside() : yage::Collider , yage::RectangleCollider
  • instance() -: yage::Engine -, yage::Logger +: yage::Logger +
  • +
  • is_valid() +: yage::EntityManager
  • diff --git a/functions_k.html b/functions_k.html index 6aea571f..d8442907 100644 --- a/functions_k.html +++ b/functions_k.html @@ -126,13 +126,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    - k -

    diff --git a/functions_l.html b/functions_l.html index 06e30deb..789aea9e 100644 --- a/functions_l.html +++ b/functions_l.html @@ -148,7 +148,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_m.html b/functions_m.html index beb134b3..af99fd08 100644 --- a/functions_m.html +++ b/functions_m.html @@ -125,14 +125,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    Here is a list of all class members with links to the classes they belong to:

    - m -

    diff --git a/functions_t.html b/functions_t.html index 44efdfea..0b1637fb 100644 --- a/functions_t.html +++ b/functions_t.html @@ -149,7 +149,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_type.html b/functions_type.html index 7a812e30..0c9af582 100644 --- a/functions_type.html +++ b/functions_type.html @@ -97,14 +97,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • Callback : yage::Active
  • -
  • Group -: yage::BaseComponent -
  • diff --git a/functions_u.html b/functions_u.html index 967964cb..de3f0628 100644 --- a/functions_u.html +++ b/functions_u.html @@ -129,12 +129,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : yage::UV
  • update() -: yage::Body +: yage::BaseSystem +, yage::Body , yage::Camera -, yage::Engine , yage::ParticleBody -, yage::Space -, yage::System
  • use() : yage::Shader @@ -149,7 +147,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_v.html b/functions_v.html index 31b99afc..3c49a1b9 100644 --- a/functions_v.html +++ b/functions_v.html @@ -150,7 +150,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_vars.html b/functions_vars.html index dd0609fa..77ffca22 100644 --- a/functions_vars.html +++ b/functions_vars.html @@ -129,6 +129,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • acceleration_ : yage::Body
  • +
  • active_mask_ +: yage::System< T > +
  • @@ -149,6 +152,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • colour : yage::Vertex
  • +
  • component_group_ +: yage::EntityManager +
  • +
  • component_masks_ +: yage::EntityManager +
  • +
  • components_ +: yage::ComponentGroup +
  • @@ -156,6 +168,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • data_ : yage::Matrix< Rows, Cols, Type >
  • +
  • deleted_ +: yage::EntityManager +
  • depth : yage::details::Glyph
  • @@ -190,7 +205,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : yage::Body
  • group_id_counter_ -: yage::BaseComponent +: yage::BaseComponent
  • @@ -347,7 +362,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_w.html b/functions_w.html index 7c4ebd7b..1ecaf92b 100644 --- a/functions_w.html +++ b/functions_w.html @@ -144,7 +144,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_x.html b/functions_x.html index cb0ebb2a..76894efc 100644 --- a/functions_x.html +++ b/functions_x.html @@ -139,7 +139,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_y.html b/functions_y.html index f7e63fd1..3ffd81ce 100644 --- a/functions_y.html +++ b/functions_y.html @@ -139,7 +139,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_z.html b/functions_z.html index ad97fc47..6af2d303 100644 --- a/functions_z.html +++ b/functions_z.html @@ -136,7 +136,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_~.html b/functions_~.html index 2cca6620..74a3f27c 100644 --- a/functions_~.html +++ b/functions_~.html @@ -131,9 +131,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ~CollisionBody() : yage::CollisionBody
  • -
  • ~Engine() -: yage::Engine -
  • ~LogMessage() : yage::LogMessage
  • @@ -153,7 +150,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/globals.html b/globals.html index 12136ecd..d51b8352 100644 --- a/globals.html +++ b/globals.html @@ -273,7 +273,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/globals_defs.html b/globals_defs.html index 13fd983a..920ac8e8 100644 --- a/globals_defs.html +++ b/globals_defs.html @@ -127,7 +127,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/globals_eval.html b/globals_eval.html index 19cfecca..4e0ec2dc 100644 --- a/globals_eval.html +++ b/globals_eval.html @@ -112,7 +112,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/globals_func.html b/globals_func.html index 7b5a7312..ce0195f6 100644 --- a/globals_func.html +++ b/globals_func.html @@ -209,7 +209,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/globals_type.html b/globals_type.html index 1fa81a2d..a99fa8af 100644 --- a/globals_type.html +++ b/globals_type.html @@ -103,7 +103,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/globals_vars.html b/globals_vars.html index 0b575ce7..3aa3fcdf 100644 --- a/globals_vars.html +++ b/globals_vars.html @@ -100,7 +100,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/hierarchy.html b/hierarchy.html index ca25ec72..5f55026f 100644 --- a/hierarchy.html +++ b/hierarchy.html @@ -91,64 +91,62 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    This inheritance list is sorted roughly, but not completely, alphabetically:
    [detail level 123]
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    oCyage::Active
    oCyage::BaseComponentBase component used to store components
    |\Cyage::Component< Derived >The main component that is used to make a component from a defined struct
    oCyage::Body
    |oCyage::CollisionBody
    |\Cyage::ParticleBody
    | \Cyage::RigidBody
    oCyage::Camera
    oCyage::Collider
    |\Cyage::RectangleCollider
    oCyage::Colour
    oCyage::ComponentGroupContains a list of all components that belong to a sepecific group, these are then stored in the main entity manager
    oCyage::EntityManagerManages entities in a space
    oCstd::exceptionSTL class
    |\Cstd::runtime_errorSTL class
    | \Cyage::FileLoadException
    oCyage::details::GlyphGlyph with information of the texture
    oCyage::ImageLoader
    oCyage::Logger
    oCyage::LogMessage
    oCyage::LogSink
    oCyage::Matrix< Rows, Cols, Type >Base Matrix class used by other similar classes
    oCyage::Matrix< Rows, 1, double >
    |\Cyage::Vector< 2, double >
    | \Cyage::Vector2< double >
    oCyage::Matrix< Rows, 1, Type >
    |oCyage::Vector< 2, Type >
    ||\Cyage::Vector2< Type >2D Vector class
    |oCyage::Vector< 3, Type >
    ||\Cyage::Vector3< Type >3D Vector class
    |oCyage::Vector< 4, Type >
    ||\Cyage::Vector4< Type >4D Vector class
    |\Cyage::Vector< Rows, Type >
    oCyage::LogMessage::Meta
    oCMovement
    oCyage::NonCopyable
    |oCyage::EngineMain engine class that contains a systems, the main loop and the update function that updates all the systems
    |\Cyage::System
    oCyage::Position
    oCyage::details::RenderBatch
    oCyage::ResourceManager
    oCyage::details::Row< Rows, Cols, Type >
    oCyage::Shader
    oCyage::SpaceSpace that keeps track of all the entities, componenets and runs the systems on the data to update them
    oCyage::SpriteBatch
    oCstbi_io_callbacks
    oCyage::SyncQueue< T >
    oCyage::SyncQueue< Callback >
    oCyage::Texture
    oCyage::TextureCache
    oCyage::UV
    oCyage::Vertex
    \Cyage::Window
    oCyage::BaseComponent
    |\Cyage::Component< T >
    oCyage::BaseSystem
    |\Cyage::System< T >
    oCyage::Body
    |oCyage::CollisionBody
    |\Cyage::ParticleBody
    | \Cyage::RigidBody
    oCyage::Camera
    oCyage::Collider
    |\Cyage::RectangleCollider
    oCyage::Colour
    oCyage::ComponentGroup
    oCyage::EntityManagerHas to keep track of all the different entities and their current state
    oCstd::exceptionSTL class
    |\Cstd::runtime_errorSTL class
    | \Cyage::FileLoadException
    oCyage::details::GlyphGlyph with information of the texture
    oCyage::ImageLoader
    oCyage::Logger
    oCyage::LogMessage
    oCyage::LogSink
    oCyage::Matrix< Rows, Cols, Type >Base Matrix class used by other similar classes
    oCyage::Matrix< Rows, 1, double >
    |\Cyage::Vector< 2, double >
    | \Cyage::Vector2< double >
    oCyage::Matrix< Rows, 1, Type >
    |oCyage::Vector< 2, Type >
    ||\Cyage::Vector2< Type >2D Vector class
    |oCyage::Vector< 3, Type >
    ||\Cyage::Vector3< Type >3D Vector class
    |oCyage::Vector< 4, Type >
    ||\Cyage::Vector4< Type >4D Vector class
    |\Cyage::Vector< Rows, Type >
    oCyage::LogMessage::Meta
    oCyage::NonCopyable
    oCyage::Position
    oCyage::details::RenderBatch
    oCyage::ResourceManager
    oCyage::details::Row< Rows, Cols, Type >
    oCyage::Shader
    oCyage::SpriteBatch
    oCstbi_io_callbacks
    oCyage::SyncQueue< T >
    oCyage::SyncQueue< Callback >
    oCyage::Texture
    oCyage::TextureCache
    oCyage::UV
    oCyage::Vertex
    \Cyage::Window
    diff --git a/imageloader_8cpp.html b/imageloader_8cpp.html index 7ca7398e..c12f1027 100644 --- a/imageloader_8cpp.html +++ b/imageloader_8cpp.html @@ -100,7 +100,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); #include "../data/texture.h"
    #include "logger.h"
    #include "stb_image.h"
    -#include <iostream>
    #include <glad/glad.h>
    #include <stdexcept>
    @@ -118,7 +117,7 @@ Namespaces diff --git a/imageloader_8h.html b/imageloader_8h.html index e36359e6..a626c6cb 100644 --- a/imageloader_8h.html +++ b/imageloader_8h.html @@ -120,7 +120,7 @@ Namespaces diff --git a/imageloader_8h_source.html b/imageloader_8h_source.html index ef2cdd26..cb0f6f6c 100644 --- a/imageloader_8h_source.html +++ b/imageloader_8h_source.html @@ -108,12 +108,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    24 
    25 } // namespace yage
    yage::ImageLoader
    Definition: imageloader.h:19
    -
    yage::ImageLoader::loadPng
    static Texture loadPng(const std::string &file_path)
    Definition: imageloader.cpp:26
    +
    yage::ImageLoader::loadPng
    static Texture loadPng(const std::string &file_path)
    Definition: imageloader.cpp:22
    yage::Texture
    Definition: texture.h:17
    diff --git a/index.html b/index.html index 0037f895..42bcd811 100644 --- a/index.html +++ b/index.html @@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/input_8h.html b/input_8h.html index b919c75d..ef4ea296 100644 --- a/input_8h.html +++ b/input_8h.html @@ -293,7 +293,7 @@ Enumerations diff --git a/input_8h_source.html b/input_8h_source.html index b55f248a..de5c82c6 100644 --- a/input_8h_source.html +++ b/input_8h_source.html @@ -371,7 +371,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/iomanager_8cpp.html b/iomanager_8cpp.html index 3b7fc6a9..03b52801 100644 --- a/iomanager_8cpp.html +++ b/iomanager_8cpp.html @@ -123,7 +123,7 @@ Functions diff --git a/iomanager_8h.html b/iomanager_8h.html index e1388dd8..fd989f68 100644 --- a/iomanager_8h.html +++ b/iomanager_8h.html @@ -123,7 +123,7 @@ Functions diff --git a/iomanager_8h_source.html b/iomanager_8h_source.html index 1ad2ed10..1c1387ea 100644 --- a/iomanager_8h_source.html +++ b/iomanager_8h_source.html @@ -111,7 +111,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/logger_8cpp.html b/logger_8cpp.html index 98aad4e1..a715bd0c 100644 --- a/logger_8cpp.html +++ b/logger_8cpp.html @@ -127,7 +127,7 @@ Functions diff --git a/logger_8h.html b/logger_8h.html index ec3969b4..d5910484 100644 --- a/logger_8h.html +++ b/logger_8h.html @@ -244,7 +244,7 @@ Functions diff --git a/logger_8h_source.html b/logger_8h_source.html index aef905c6..55ffdffb 100644 --- a/logger_8h_source.html +++ b/logger_8h_source.html @@ -320,7 +320,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/logger_8md.html b/logger_8md.html index ee886ca2..acd94783 100644 --- a/logger_8md.html +++ b/logger_8md.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/logger_guide.html b/logger_guide.html index 3000063f..86e8b3b4 100644 --- a/logger_guide.html +++ b/logger_guide.html @@ -93,7 +93,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/main_8md.html b/main_8md.html index 806edc2f..25499f3a 100644 --- a/main_8md.html +++ b/main_8md.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/matrix_8h.html b/matrix_8h.html index 9fafae30..1f658fc3 100644 --- a/matrix_8h.html +++ b/matrix_8h.html @@ -101,7 +101,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); More...

    #include <algorithm>
    #include <exception>
    -#include <iostream>
    #include <sstream>
    #include <string>
    #include <vector>
    @@ -221,7 +220,7 @@ Functions
    diff --git a/matrix_8h_source.html b/matrix_8h_source.html index 0d681e18..5859aa4d 100644 --- a/matrix_8h_source.html +++ b/matrix_8h_source.html @@ -91,447 +91,446 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    Go to the documentation of this file.
    1 
    -
    13 #pragma once
    -
    14 
    -
    15 #include <algorithm>
    -
    16 #include <exception>
    -
    17 #include <iostream>
    -
    18 #include <sstream>
    -
    19 #include <string>
    -
    20 #include <vector>
    -
    21 
    -
    22 namespace yage
    -
    23 {
    -
    24 
    -
    25 template <int Rows, int Cols, class Type>
    -
    26 class Matrix;
    -
    27 
    -
    35 namespace details
    -
    36 {
    -
    37 
    -
    46 template <int Rows, int Cols, class Type>
    -
    47 class Row
    -
    48 {
    -
    49 private:
    -
    50  Matrix<Rows, Cols, Type> *parent_;
    -
    51  int index_;
    -
    52 
    -
    53 public:
    - -
    55  : parent_(parent), index_(index)
    +
    10 #pragma once
    +
    11 
    +
    12 #include <algorithm>
    +
    13 #include <exception>
    +
    14 #include <sstream>
    +
    15 #include <string>
    +
    16 #include <vector>
    +
    17 
    +
    18 namespace yage
    +
    19 {
    +
    20 
    +
    21 template <int Rows, int Cols, class Type>
    +
    22 class Matrix;
    +
    23 
    +
    31 namespace details
    +
    32 {
    +
    33 
    +
    42 template <int Rows, int Cols, class Type>
    +
    43 class Row
    +
    44 {
    +
    45 private:
    +
    46  Matrix<Rows, Cols, Type> *parent_;
    +
    47  int index_;
    +
    48 
    +
    49 public:
    + +
    51  : parent_(parent), index_(index)
    +
    52  {
    +
    53  }
    +
    54 
    +
    55  Type &operator[](int col)
    56  {
    -
    57  }
    -
    58 
    -
    59  Type &operator[](int col)
    -
    60  {
    -
    61  // The index is the y-position of the element in the matrix
    -
    62  return parent_->data_[index_ * Cols + col];
    -
    63  }
    -
    64 
    -
    65  const Type &operator[](int col) const
    -
    66  {
    -
    67  return parent_->data_[index_ * Cols + col];
    -
    68  }
    -
    69 };
    -
    70 
    -
    71 } // namespace details
    -
    72 
    -
    75 template <int Rows = 4, int Cols = 4, class Type = double>
    -
    76 class Matrix
    -
    77 {
    -
    78  // friended with the row class so that it can access protected member data.
    -
    79  friend class details::Row<Rows, Cols, Type>;
    +
    57  // The index is the y-position of the element in the matrix
    +
    58  return parent_->data_[index_ * Cols + col];
    +
    59  }
    +
    60 
    +
    61  const Type &operator[](int col) const
    +
    62  {
    +
    63  return parent_->data_[index_ * Cols + col];
    +
    64  }
    +
    65 };
    +
    66 
    +
    67 } // namespace details
    +
    68 
    +
    71 template <int Rows = 4, int Cols = 4, class Type = double>
    +
    72 class Matrix
    +
    73 {
    +
    74  // friended with the row class so that it can access protected member data.
    +
    75  friend class details::Row<Rows, Cols, Type>;
    +
    76 
    +
    77 protected:
    +
    79  std::vector<Type> data_;
    80 
    -
    81 protected:
    -
    83  std::vector<Type> data_;
    -
    84 
    -
    85 public:
    -
    87  Matrix<Rows, Cols, Type>() : data_(Rows * Cols) {}
    -
    88  Matrix<Rows, Cols, Type>(const std::vector<Type> &data) : data_(data) {}
    -
    89 
    -
    91  int rowSize() const { return Rows; }
    -
    92 
    -
    94  int colSize() const { return Cols; }
    -
    95 
    - -
    102  {
    -
    103  Matrix<1, Cols, Type> rowMatrix;
    -
    104  for (int i = 0; i < Cols; ++i) {
    -
    105  rowMatrix[0][i] = data_[row][i];
    -
    106  }
    -
    107  return rowMatrix;
    -
    108  }
    -
    109 
    - -
    116  {
    -
    117  Matrix<Rows, 1, Type> colMatrix;
    -
    118  for (int i = 0; i < Rows; ++i) {
    -
    119  colMatrix[i][0] = data_[i][col];
    -
    120  }
    -
    121  return colMatrix;
    -
    122  }
    -
    123 
    -
    128  typename std::vector<Type>::iterator begin() { return data_.begin(); }
    -
    129 
    -
    134  typename std::vector<Type>::iterator end() { return data_.end(); }
    -
    135 
    -
    142  virtual std::string toString() const
    -
    143  {
    -
    144  std::stringstream ss;
    -
    145  ss << '[';
    -
    146  for (int i = 0; i < Rows - 1; ++i) {
    -
    147  ss << '[';
    -
    148  for (int j = 0; j < Cols - 1; ++j) {
    -
    149  ss << data_[i * Cols + j] << ' ';
    -
    150  }
    -
    151  ss << data_[(Rows - 1) * Cols + Cols - 1] << "],";
    +
    81 public:
    +
    83  Matrix<Rows, Cols, Type>() : data_(Rows * Cols) {}
    +
    84  Matrix<Rows, Cols, Type>(const std::vector<Type> &data) : data_(data) {}
    +
    85 
    +
    87  int rowSize() const { return Rows; }
    +
    88 
    +
    90  int colSize() const { return Cols; }
    +
    91 
    + +
    98  {
    +
    99  Matrix<1, Cols, Type> rowMatrix;
    +
    100  for (int i = 0; i < Cols; ++i) {
    +
    101  rowMatrix[0][i] = data_[row][i];
    +
    102  }
    +
    103  return rowMatrix;
    +
    104  }
    +
    105 
    + +
    112  {
    +
    113  Matrix<Rows, 1, Type> colMatrix;
    +
    114  for (int i = 0; i < Rows; ++i) {
    +
    115  colMatrix[i][0] = data_[i][col];
    +
    116  }
    +
    117  return colMatrix;
    +
    118  }
    +
    119 
    +
    124  typename std::vector<Type>::iterator begin() { return data_.begin(); }
    +
    125 
    +
    130  typename std::vector<Type>::iterator end() { return data_.end(); }
    +
    131 
    +
    138  virtual std::string toString() const
    +
    139  {
    +
    140  std::stringstream ss;
    +
    141  ss << '[';
    +
    142  for (int i = 0; i < Rows - 1; ++i) {
    +
    143  ss << '[';
    +
    144  for (int j = 0; j < Cols - 1; ++j) {
    +
    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  ss << data_[(Rows - 1) * Cols + j] << ' ';
    152  }
    -
    153  ss << '[';
    -
    154  for (int j = 0; j < Cols - 1; ++j) {
    -
    155  ss << data_[(Rows - 1) * Cols + j] << ' ';
    -
    156  }
    -
    157  ss << data_[(Rows - 1) * Cols + Cols - 1] << "]]";
    -
    158  return ss.str();
    -
    159  }
    -
    160 
    - -
    162  {
    -
    163  return details::Row<Rows, Cols, Type>(this, row);
    -
    164  }
    -
    165 
    - -
    167  {
    - -
    169  row);
    -
    170  }
    -
    171 
    - -
    173  {
    -
    174  std::vector<Type> out;
    -
    175  out.reserve(data_.size());
    -
    176  std::transform(data_.begin(), data_.end(), rhs.data_.begin(),
    -
    177  std::back_inserter(out),
    -
    178  [](Type a, Type b) { return a + b; });
    -
    179  data_ = std::move(out);
    -
    180  return *this;
    -
    181  }
    -
    182 
    - -
    184  {
    -
    185  std::vector<Type> out;
    -
    186  out.reserve(data_.size());
    -
    187  std::transform(data_.begin(), data_.end(), rhs.begin(),
    -
    188  std::back_inserter(out),
    -
    189  [](Type a, Type b) { return a - b; });
    -
    190  data_ = std::move(out);
    -
    191  return *this;
    -
    192  }
    -
    193 };
    -
    194 
    -
    195 template <int M, int N, class T>
    - -
    197 {
    -
    198  lhs += rhs;
    -
    199  return lhs;
    -
    200 }
    -
    201 
    -
    202 template <int M, int N, class T>
    - -
    204 {
    -
    205  lhs -= rhs;
    -
    206  return lhs;
    -
    207 }
    -
    208 
    -
    209 template <int M, int N, class T>
    - -
    211 {
    -
    212  for (auto &data : lhs) {
    -
    213  data += rhs;
    -
    214  }
    -
    215  return lhs;
    -
    216 }
    -
    217 
    -
    218 template <int M, int N, class T>
    - -
    220 {
    -
    221  for (auto &data : rhs) {
    -
    222  data += lhs;
    -
    223  }
    -
    224  return rhs;
    -
    225 }
    -
    226 
    -
    227 template <int M, int N, class T>
    - -
    229 {
    -
    230  for (auto &data : lhs) {
    -
    231  data -= rhs;
    -
    232  }
    -
    233  return lhs;
    -
    234 }
    -
    235 
    -
    236 template <int M, int N, class T>
    - -
    238 {
    -
    239  for (auto &data : rhs) {
    -
    240  data = lhs - data;
    -
    241  }
    -
    242  return rhs;
    -
    243 }
    -
    244 
    -
    245 template <int M, int N, class T>
    - -
    247 {
    -
    248  for (auto &data : lhs) {
    -
    249  data *= rhs;
    -
    250  }
    -
    251  return lhs;
    -
    252 }
    -
    253 
    -
    254 template <int M, int N, class T>
    - -
    256 {
    -
    257  for (auto &data : rhs) {
    -
    258  data *= lhs;
    -
    259  }
    -
    260  return rhs;
    -
    261 }
    -
    262 
    -
    263 template <int M, int N, class T>
    - -
    265 {
    -
    266  for (auto &data : lhs) {
    -
    267  data /= rhs;
    -
    268  }
    -
    269  return lhs;
    -
    270 }
    -
    271 
    -
    272 template <int M, int N, class T>
    -
    273 bool operator==(const Matrix<M, N, T> &lhs, const Matrix<M, N, T> &rhs)
    -
    274 {
    -
    275  for (int i = 0; i < M; ++i) {
    -
    276  for (int j = 0; j < N; ++j) {
    -
    277  if (lhs[i][j] != rhs[i][j]) {
    -
    278  return false;
    -
    279  }
    -
    280  }
    -
    281  }
    -
    282  return true;
    -
    283 }
    -
    284 
    -
    285 template <int M, int N, class T>
    -
    286 std::ostream &operator<<(std::ostream &os, const Matrix<M, N, T> &mat)
    -
    287 {
    -
    288  return os << mat.toString();
    -
    289 }
    -
    290 
    -
    291 template <int Rows = 2, class Type = double>
    -
    292 class Vector : public Matrix<Rows, 1, Type>
    -
    293 {
    -
    294 public:
    - - -
    297  : Matrix<Rows, 1, Type>(other)
    -
    298  {
    -
    299  }
    -
    300 
    -
    301  Vector<Rows, Type>(const std::vector<Type> &data)
    -
    302  : Matrix<Rows, 1, Type>(data)
    -
    303  {
    -
    304  }
    +
    153  ss << data_[(Rows - 1) * Cols + Cols - 1] << "]]";
    +
    154  return ss.str();
    +
    155  }
    +
    156 
    + +
    158  {
    +
    159  return details::Row<Rows, Cols, Type>(this, row);
    +
    160  }
    +
    161 
    + +
    163  {
    + +
    165  row);
    +
    166  }
    +
    167 
    + +
    169  {
    +
    170  std::vector<Type> out;
    +
    171  out.reserve(data_.size());
    +
    172  std::transform(data_.begin(), data_.end(), rhs.data_.begin(),
    +
    173  std::back_inserter(out),
    +
    174  [](Type a, Type b) { return a + b; });
    +
    175  data_ = std::move(out);
    +
    176  return *this;
    +
    177  }
    +
    178 
    + +
    180  {
    +
    181  std::vector<Type> out;
    +
    182  out.reserve(data_.size());
    +
    183  std::transform(data_.begin(), data_.end(), rhs.begin(),
    +
    184  std::back_inserter(out),
    +
    185  [](Type a, Type b) { return a - b; });
    +
    186  data_ = std::move(out);
    +
    187  return *this;
    +
    188  }
    +
    189 };
    +
    190 
    +
    191 template <int M, int N, class T>
    + +
    193 {
    +
    194  lhs += rhs;
    +
    195  return lhs;
    +
    196 }
    +
    197 
    +
    198 template <int M, int N, class T>
    + +
    200 {
    +
    201  lhs -= rhs;
    +
    202  return lhs;
    +
    203 }
    +
    204 
    +
    205 template <int M, int N, class T>
    + +
    207 {
    +
    208  for (auto &data : lhs) {
    +
    209  data += rhs;
    +
    210  }
    +
    211  return lhs;
    +
    212 }
    +
    213 
    +
    214 template <int M, int N, class T>
    + +
    216 {
    +
    217  for (auto &data : rhs) {
    +
    218  data += lhs;
    +
    219  }
    +
    220  return rhs;
    +
    221 }
    +
    222 
    +
    223 template <int M, int N, class T>
    + +
    225 {
    +
    226  for (auto &data : lhs) {
    +
    227  data -= rhs;
    +
    228  }
    +
    229  return lhs;
    +
    230 }
    +
    231 
    +
    232 template <int M, int N, class T>
    + +
    234 {
    +
    235  for (auto &data : rhs) {
    +
    236  data = lhs - data;
    +
    237  }
    +
    238  return rhs;
    +
    239 }
    +
    240 
    +
    241 template <int M, int N, class T>
    + +
    243 {
    +
    244  for (auto &data : lhs) {
    +
    245  data *= rhs;
    +
    246  }
    +
    247  return lhs;
    +
    248 }
    +
    249 
    +
    250 template <int M, int N, class T>
    + +
    252 {
    +
    253  for (auto &data : rhs) {
    +
    254  data *= lhs;
    +
    255  }
    +
    256  return rhs;
    +
    257 }
    +
    258 
    +
    259 template <int M, int N, class T>
    + +
    261 {
    +
    262  for (auto &data : lhs) {
    +
    263  data /= rhs;
    +
    264  }
    +
    265  return lhs;
    +
    266 }
    +
    267 
    +
    268 template <int M, int N, class T>
    +
    269 bool operator==(const Matrix<M, N, T> &lhs, const Matrix<M, N, T> &rhs)
    +
    270 {
    +
    271  for (int i = 0; i < M; ++i) {
    +
    272  for (int j = 0; j < N; ++j) {
    +
    273  if (lhs[i][j] != rhs[i][j]) {
    +
    274  return false;
    +
    275  }
    +
    276  }
    +
    277  }
    +
    278  return true;
    +
    279 }
    +
    280 
    +
    281 template <int M, int N, class T>
    +
    282 std::ostream &operator<<(std::ostream &os, const Matrix<M, N, T> &mat)
    +
    283 {
    +
    284  return os << mat.toString();
    +
    285 }
    +
    286 
    +
    287 template <int Rows = 2, class Type = double>
    +
    288 class Vector : public Matrix<Rows, 1, Type>
    +
    289 {
    +
    290 public:
    + + +
    293  : Matrix<Rows, 1, Type>(other)
    +
    294  {
    +
    295  }
    +
    296 
    +
    297  Vector<Rows, Type>(const std::vector<Type> &data)
    +
    298  : Matrix<Rows, 1, Type>(data)
    +
    299  {
    +
    300  }
    +
    301 
    +
    302  Type &operator[](int col) { return this->data_[col]; }
    +
    303 
    +
    304  const Type &operator[](int col) const { return this->data_[col]; }
    305 
    -
    306  Type &operator[](int col) { return this->data_[col]; }
    -
    307 
    -
    308  const Type &operator[](int col) const { return this->data_[col]; }
    -
    309 
    -
    310  std::string toString() const override
    -
    311  {
    -
    312  std::stringstream ss;
    -
    313  ss << "[";
    -
    314  for (std::size_t i = 0; i < this->data_.size() - 1; ++i) {
    -
    315  ss << this->data_[i] << " ";
    -
    316  }
    -
    317  ss << this->data_[this->data_.size() - 1] << "]";
    -
    318  return ss.str();
    -
    319  }
    -
    320 };
    -
    321 
    -
    326 template <typename Type = double>
    -
    327 class Vector2 : public Vector<2, Type>
    -
    328 {
    -
    329 public:
    - -
    331  Vector2<Type>(const std::vector<Type> &data) : Vector<2, Type>(data) {}
    -
    332 
    -
    333  Vector2<Type>(Type x, Type y)
    -
    334  {
    -
    335  this->data_[0] = x;
    -
    336  this->data_[1] = y;
    -
    337  }
    -
    338 
    - -
    340 
    -
    341  Type &x() { return this->data_[0]; }
    -
    342  const Type &x() const { return this->data_[0]; }
    +
    306  std::string toString() const override
    +
    307  {
    +
    308  std::stringstream ss;
    +
    309  ss << "[";
    +
    310  for (std::size_t i = 0; i < this->data_.size() - 1; ++i) {
    +
    311  ss << this->data_[i] << " ";
    +
    312  }
    +
    313  ss << this->data_[this->data_.size() - 1] << "]";
    +
    314  return ss.str();
    +
    315  }
    +
    316 };
    +
    317 
    +
    322 template <typename Type = double>
    +
    323 class Vector2 : public Vector<2, Type>
    +
    324 {
    +
    325 public:
    + +
    327  Vector2<Type>(const std::vector<Type> &data) : Vector<2, Type>(data) {}
    +
    328 
    +
    329  Vector2<Type>(Type x, Type y)
    +
    330  {
    +
    331  this->data_[0] = x;
    +
    332  this->data_[1] = y;
    +
    333  }
    +
    334 
    + +
    336 
    +
    337  Type &x() { return this->data_[0]; }
    +
    338  const Type &x() const { return this->data_[0]; }
    +
    339 
    +
    340  Type &y() { return this->data_[1]; }
    +
    341  const Type &y() const { return this->data_[1]; }
    +
    342 };
    343 
    -
    344  Type &y() { return this->data_[1]; }
    -
    345  const Type &y() const { return this->data_[1]; }
    -
    346 };
    -
    347 
    -
    352 template <typename Type = double>
    -
    353 class Vector3 : public Vector<3, Type>
    -
    354 {
    -
    355 public:
    -
    356  Type &x, &y, &z;
    -
    357 
    - -
    359 
    -
    360  Vector3<Type>(std::vector<Type> data)
    -
    361  : Vector<3, Type>(data), x(this->data_[0]), y(this->data_[1]),
    -
    362  z(this->data_[2])
    -
    363  {
    -
    364  }
    -
    365 
    -
    366  Vector3<Type>(Type x_in, Type y_in, Type z_in)
    -
    367  : Vector<3, Type>({x_in, y_in, z_in}), x(this->data_[0]),
    -
    368  y(this->data_[1]), z(this->data_[2])
    -
    369  {
    -
    370  }
    -
    371 };
    -
    372 
    -
    375 template <typename Type = double>
    -
    376 class Vector4 : public Vector<4, Type>
    -
    377 {
    -
    378 public:
    -
    379  Type &x, &y, &z, &w;
    -
    380 
    - -
    382 
    -
    383  Vector4<Type>(std::vector<Type> data)
    -
    384  : Vector<4, Type>(data), x(this->data_[0]), y(this->data_[1]),
    -
    385  z(this->data_[2]), w(this->data_[3])
    -
    386  {
    -
    387  }
    -
    388 
    -
    389  Vector4<Type>(Type x_in, Type y_in, Type z_in, Type w_in)
    -
    390  : Vector<4, Type>({x_in, y_in, z_in, w_in}), x(this->data_[0]),
    -
    391  y(this->data_[1]), z(this->data_[2]), w(this->data_[3])
    -
    392  {
    -
    393  }
    -
    394 };
    -
    395 
    - - - -
    401 
    - - - -
    407 
    - - - -
    413 
    -
    419 namespace matrix
    -
    420 {
    -
    421 
    -
    426 template <int M, int N, class T>
    - -
    428 {
    -
    429  Matrix<N, M, T> trans;
    -
    430  for (int i = 0; i < M; ++i) {
    -
    431  for (int j = 0; j < N; ++j) {
    -
    432  trans[j][i] = m[i][j];
    -
    433  }
    -
    434  }
    -
    435  return trans;
    -
    436 }
    -
    437 
    -
    442 template <int R, class T>
    -
    443 T dot(const Matrix<R, 1, T> &m1, const Matrix<R, 1, T> &m2)
    -
    444 {
    -
    445  T sum = 0;
    -
    446  for (int i = 0; i < R; ++i) {
    -
    447  sum += m1[i][0] * m2[i][0];
    -
    448  }
    -
    449  return sum;
    -
    450 }
    -
    451 
    -
    458 template <int M, int N, int P, int Q, class T>
    - -
    460 {
    -
    462  if (N != P) {
    -
    463  throw std::runtime_error(
    -
    464  "Matrices don't have the right dimensions for multiplication");
    -
    465  }
    -
    466 
    -
    467  Matrix<M, Q, T> res;
    -
    468 
    -
    471  for (int i = 0; i < M; ++i) {
    -
    472  for (int j = 0; j < Q; ++j) {
    -
    473  res[i][j] = dot(transpose(m1.getRow(i)), m2.getCol(j));
    -
    474  }
    -
    475  }
    -
    476 
    -
    477  return res;
    -
    478 }
    -
    479 
    -
    480 } // namespace matrix
    -
    481 
    -
    482 } // namespace yage
    -
    Matrix< M, N, T > operator/(Matrix< M, N, T > lhs, const T &rhs)
    Definition: matrix.h:264
    -
    Matrix< 1, Cols, Type > getRow(int row) const
    Return the row specified row as a Matrix with only one row.
    Definition: matrix.h:101
    -
    Type & z
    Definition: matrix.h:379
    -
    Definition: matrix.h:47
    -
    Matrix< M, N, T > operator*(Matrix< M, N, T > lhs, const T &rhs)
    Definition: matrix.h:246
    +
    348 template <typename Type = double>
    +
    349 class Vector3 : public Vector<3, Type>
    +
    350 {
    +
    351 public:
    +
    352  Type &x, &y, &z;
    +
    353 
    + +
    355 
    +
    356  Vector3<Type>(std::vector<Type> data)
    +
    357  : Vector<3, Type>(data), x(this->data_[0]), y(this->data_[1]),
    +
    358  z(this->data_[2])
    +
    359  {
    +
    360  }
    +
    361 
    +
    362  Vector3<Type>(Type x_in, Type y_in, Type z_in)
    +
    363  : Vector<3, Type>({x_in, y_in, z_in}), x(this->data_[0]),
    +
    364  y(this->data_[1]), z(this->data_[2])
    +
    365  {
    +
    366  }
    +
    367 };
    +
    368 
    +
    371 template <typename Type = double>
    +
    372 class Vector4 : public Vector<4, Type>
    +
    373 {
    +
    374 public:
    +
    375  Type &x, &y, &z, &w;
    +
    376 
    + +
    378 
    +
    379  Vector4<Type>(std::vector<Type> data)
    +
    380  : Vector<4, Type>(data), x(this->data_[0]), y(this->data_[1]),
    +
    381  z(this->data_[2]), w(this->data_[3])
    +
    382  {
    +
    383  }
    +
    384 
    +
    385  Vector4<Type>(Type x_in, Type y_in, Type z_in, Type w_in)
    +
    386  : Vector<4, Type>({x_in, y_in, z_in, w_in}), x(this->data_[0]),
    +
    387  y(this->data_[1]), z(this->data_[2]), w(this->data_[3])
    +
    388  {
    +
    389  }
    +
    390 };
    +
    391 
    + + + +
    397 
    + + + +
    403 
    + + + +
    409 
    +
    415 namespace matrix
    +
    416 {
    +
    417 
    +
    422 template <int M, int N, class T>
    + +
    424 {
    +
    425  Matrix<N, M, T> trans;
    +
    426  for (int i = 0; i < M; ++i) {
    +
    427  for (int j = 0; j < N; ++j) {
    +
    428  trans[j][i] = m[i][j];
    +
    429  }
    +
    430  }
    +
    431  return trans;
    +
    432 }
    +
    433 
    +
    438 template <int R, class T>
    +
    439 T dot(const Matrix<R, 1, T> &m1, const Matrix<R, 1, T> &m2)
    +
    440 {
    +
    441  T sum = 0;
    +
    442  for (int i = 0; i < R; ++i) {
    +
    443  sum += m1[i][0] * m2[i][0];
    +
    444  }
    +
    445  return sum;
    +
    446 }
    +
    447 
    +
    454 template <int M, int N, int P, int Q, class T>
    + +
    456 {
    +
    458  if (N != P) {
    +
    459  throw std::runtime_error(
    +
    460  "Matrices don't have the right dimensions for multiplication");
    +
    461  }
    +
    462 
    +
    463  Matrix<M, Q, T> res;
    +
    464 
    +
    467  for (int i = 0; i < M; ++i) {
    +
    468  for (int j = 0; j < Q; ++j) {
    +
    469  res[i][j] = dot(transpose(m1.getRow(i)), m2.getCol(j));
    +
    470  }
    +
    471  }
    +
    472 
    +
    473  return res;
    +
    474 }
    +
    475 
    +
    476 } // namespace matrix
    +
    477 
    +
    478 } // namespace yage
    +
    Matrix< M, N, T > operator/(Matrix< M, N, T > lhs, const T &rhs)
    Definition: matrix.h:260
    +
    Matrix< 1, Cols, Type > getRow(int row) const
    Return the row specified row as a Matrix with only one row.
    Definition: matrix.h:97
    +
    Type & z
    Definition: matrix.h:375
    +
    Definition: matrix.h:43
    +
    Matrix< M, N, T > operator*(Matrix< M, N, T > lhs, const T &rhs)
    Definition: matrix.h:242
    -
    int rowSize() const
    Returns the row size of the Matrix.
    Definition: matrix.h:91
    -
    z(this->data_[2])
    Definition: matrix.h:368
    -
    2D Vector class.
    Definition: matrix.h:327
    -
    bool operator==(const Matrix< M, N, T > &lhs, const Matrix< M, N, T > &rhs)
    Definition: matrix.h:273
    -
    Type & y
    Definition: matrix.h:356
    -
    std::vector< Type >::iterator end()
    Iterator support for the end.
    Definition: matrix.h:134
    -
    Type & x
    Definition: matrix.h:356
    -
    Type & operator[](int col)
    Definition: matrix.h:306
    +
    int rowSize() const
    Returns the row size of the Matrix.
    Definition: matrix.h:87
    +
    z(this->data_[2])
    Definition: matrix.h:364
    +
    2D Vector class.
    Definition: matrix.h:323
    +
    bool operator==(const Matrix< M, N, T > &lhs, const Matrix< M, N, T > &rhs)
    Definition: matrix.h:269
    +
    Type & y
    Definition: matrix.h:352
    +
    std::vector< Type >::iterator end()
    Iterator support for the end.
    Definition: matrix.h:130
    +
    Type & x
    Definition: matrix.h:352
    +
    Type & operator[](int col)
    Definition: matrix.h:302
    -
    Type & y
    Definition: matrix.h:379
    -
    std::vector< Type > data_
    Vector containing the data of the matrix.
    Definition: matrix.h:83
    -
    Matrix< M, Q, T > multiply(const Matrix< M, N, T > &m1, const Matrix< P, Q, T > &m2)
    Multiplies two matrices together.
    Definition: matrix.h:459
    -
    Type & y()
    Definition: matrix.h:344
    +
    Type & y
    Definition: matrix.h:375
    +
    std::vector< Type > data_
    Vector containing the data of the matrix.
    Definition: matrix.h:79
    +
    Matrix< M, Q, T > multiply(const Matrix< M, N, T > &m1, const Matrix< P, Q, T > &m2)
    Multiplies two matrices together.
    Definition: matrix.h:455
    +
    Type & y()
    Definition: matrix.h:340
    -
    Type & operator[](int col)
    Definition: matrix.h:59
    -
    Matrix< Rows, 1, Type > getCol(int col) const
    Get a specific column in a column vector.
    Definition: matrix.h:115
    -
    const Type & operator[](int col) const
    Definition: matrix.h:65
    -
    w(this->data_[3])
    Definition: matrix.h:391
    -
    const Type & x() const
    Definition: matrix.h:342
    -
    Type & x
    Definition: matrix.h:379
    -
    Matrix< N, M, T > transpose(const Matrix< M, N, T > &m)
    Transposes a matrix and returns the result.
    Definition: matrix.h:427
    +
    Type & operator[](int col)
    Definition: matrix.h:55
    +
    Matrix< Rows, 1, Type > getCol(int col) const
    Get a specific column in a column vector.
    Definition: matrix.h:111
    +
    const Type & operator[](int col) const
    Definition: matrix.h:61
    +
    w(this->data_[3])
    Definition: matrix.h:387
    +
    const Type & x() const
    Definition: matrix.h:338
    +
    Type & x
    Definition: matrix.h:375
    +
    Matrix< N, M, T > transpose(const Matrix< M, N, T > &m)
    Transposes a matrix and returns the result.
    Definition: matrix.h:423
    -
    int colSize() const
    Returns the column size of the Matrix.
    Definition: matrix.h:94
    -
    const Type & operator[](int col) const
    Definition: matrix.h:308
    -
    Matrix< Rows, Cols, Type > & operator-=(const Matrix< Rows, Cols, Type > &rhs)
    Definition: matrix.h:183
    -
    3D Vector class.
    Definition: matrix.h:353
    -
    Type & x()
    Definition: matrix.h:341
    -
    details::Row< Rows, Cols, Type > operator[](int row) const
    Definition: matrix.h:166
    -
    details::Row< Rows, Cols, Type > operator[](int row)
    Definition: matrix.h:161
    +
    int colSize() const
    Returns the column size of the Matrix.
    Definition: matrix.h:90
    +
    const Type & operator[](int col) const
    Definition: matrix.h:304
    +
    Matrix< Rows, Cols, Type > & operator-=(const Matrix< Rows, Cols, Type > &rhs)
    Definition: matrix.h:179
    +
    3D Vector class.
    Definition: matrix.h:349
    +
    Type & x()
    Definition: matrix.h:337
    +
    details::Row< Rows, Cols, Type > operator[](int row) const
    Definition: matrix.h:162
    +
    details::Row< Rows, Cols, Type > operator[](int row)
    Definition: matrix.h:157
    -
    Matrix< M, N, T > operator+(Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
    Definition: matrix.h:196
    -
    Definition: matrix.h:292
    -
    Matrix< M, N, T > operator-(Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
    Definition: matrix.h:203
    -
    virtual std::string toString() const
    Prints out the matrix, but can also be implemented by other classes to print data differently...
    Definition: matrix.h:142
    -
    Matrix< Rows, Cols, Type > & operator+=(const Matrix< Rows, Cols, Type > &rhs)
    Definition: matrix.h:172
    -
    Base Matrix class used by other similar classes.
    Definition: matrix.h:26
    -
    T dot(const Matrix< R, 1, T > &m1, const Matrix< R, 1, T > &m2)
    Returns the dot product between two vectors.
    Definition: matrix.h:443
    -
    Type & w
    Definition: matrix.h:379
    -
    const Type & y() const
    Definition: matrix.h:345
    -
    std::string toString() const override
    Prints out the matrix, but can also be implemented by other classes to print data differently...
    Definition: matrix.h:310
    -
    4D Vector class
    Definition: matrix.h:376
    -
    std::vector< Type >::iterator begin()
    Iterator support for the start.
    Definition: matrix.h:128
    -
    Type & z
    Definition: matrix.h:356
    +
    Matrix< M, N, T > operator+(Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
    Definition: matrix.h:192
    +
    Definition: matrix.h:288
    +
    Matrix< M, N, T > operator-(Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
    Definition: matrix.h:199
    +
    virtual std::string toString() const
    Prints out the matrix, but can also be implemented by other classes to print data differently...
    Definition: matrix.h:138
    +
    Matrix< Rows, Cols, Type > & operator+=(const Matrix< Rows, Cols, Type > &rhs)
    Definition: matrix.h:168
    +
    Base Matrix class used by other similar classes.
    Definition: matrix.h:22
    +
    T dot(const Matrix< R, 1, T > &m1, const Matrix< R, 1, T > &m2)
    Returns the dot product between two vectors.
    Definition: matrix.h:439
    +
    Type & w
    Definition: matrix.h:375
    +
    const Type & y() const
    Definition: matrix.h:341
    +
    std::string toString() const override
    Prints out the matrix, but can also be implemented by other classes to print data differently...
    Definition: matrix.h:306
    +
    4D Vector class
    Definition: matrix.h:372
    +
    std::vector< Type >::iterator begin()
    Iterator support for the start.
    Definition: matrix.h:124
    +
    Type & z
    Definition: matrix.h:352
    diff --git a/matrix_8md.html b/matrix_8md.html index cf7ad36d..2418cdec 100644 --- a/matrix_8md.html +++ b/matrix_8md.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/md_README.html b/md_README.html index 2d1a0e7b..d30d623b 100644 --- a/md_README.html +++ b/md_README.html @@ -115,7 +115,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/md_docs_matrix.html b/md_docs_matrix.html index 90c44179..ade70729 100644 --- a/md_docs_matrix.html +++ b/md_docs_matrix.html @@ -91,7 +91,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/md_docs_todolist.html b/md_docs_todolist.html index bfb4b957..77526001 100644 --- a/md_docs_todolist.html +++ b/md_docs_todolist.html @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/md_yage_entity_README.html b/md_yage_entity_README.html index 78e4adb1..46ebeb2e 100644 --- a/md_yage_entity_README.html +++ b/md_yage_entity_README.html @@ -95,7 +95,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/md_yage_physics_README.html b/md_yage_physics_README.html index 5421ab24..3e369eee 100644 --- a/md_yage_physics_README.html +++ b/md_yage_physics_README.html @@ -87,7 +87,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/namespacemembers.html b/namespacemembers.html index 7ed4ce71..3fb34968 100644 --- a/namespacemembers.html +++ b/namespacemembers.html @@ -159,6 +159,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • COMMA : yage
  • +
  • ComponentMask +: yage +
  • @@ -304,6 +307,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • GRAVE_ACCENT : yage
  • +
  • GroupId +: yage +
  • @@ -708,7 +714,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/namespacemembers_enum.html b/namespacemembers_enum.html index 0db4ed1e..a72a4a42 100644 --- a/namespacemembers_enum.html +++ b/namespacemembers_enum.html @@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/namespacemembers_eval.html b/namespacemembers_eval.html index 27be6748..3023a565 100644 --- a/namespacemembers_eval.html +++ b/namespacemembers_eval.html @@ -621,7 +621,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/namespacemembers_func.html b/namespacemembers_func.html index 8e89cb5d..560220b2 100644 --- a/namespacemembers_func.html +++ b/namespacemembers_func.html @@ -144,7 +144,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/namespacemembers_type.html b/namespacemembers_type.html index 61ec10f7..2ad0a84c 100644 --- a/namespacemembers_type.html +++ b/namespacemembers_type.html @@ -92,9 +92,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
     
    diff --git a/namespaces.html b/namespaces.html index 992a862e..f3060f82 100644 --- a/namespaces.html +++ b/namespaces.html @@ -97,7 +97,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/namespaceyage.html b/namespaceyage.html index a1bcdc26..716d8357 100644 --- a/namespaceyage.html +++ b/namespaceyage.html @@ -136,23 +136,16 @@ Classes - - - - - - - - - - - + + + + @@ -195,7 +188,13 @@ Classes
     
    struct  Vertex
     
    class  Engine
     Main engine class that contains a systems, the main loop and the update function that updates all the systems. More...
     
    class  EntityManager
     Manages entities in a space. More...
     
    class  BaseComponent
     Base component used to store components. More...
     
    class  Component
     The main component that is used to make a component from a defined struct. More...
     
    class  ComponentGroup
     Contains a list of all components that belong to a sepecific group, these are then stored in the main entity manager. More...
     
    class  Space
     Space that keeps track of all the entities, componenets and runs the systems on the data to update them. More...
    class  EntityManager
     Has to keep track of all the different entities and their current state. More...
     
    class  BaseSystem
     
    class  System
     
    + + + + + + @@ -451,6 +450,20 @@ Functions

    Project namespace.

    Avoids collision as all the classes and global functions are wrapped in.

    Typedef Documentation

    + +
    +
    +

    Typedefs

    typedef std::bitset< 64 > ComponentMask
     The component mask represents all the components that the entity is currently attached to. More...
     
    typedef unsigned int GroupId
     
    typedef unsigned int Entity
     The entity is currently just an unsigned integer, which may change to a class in the future. More...
     
    using Vector2d = Vector2< double >
     Definition of a 2D vector. More...
    + + + +
    typedef std::bitset<64> yage::ComponentMask
    +
    + +

    The component mask represents all the components that the entity is currently attached to.

    + +
    +
    @@ -461,6 +474,20 @@ Functions
    +

    The entity is currently just an unsigned integer, which may change to a class in the future.

    + +
    +
    + +
    +
    + + + + +
    typedef unsigned int yage::GroupId
    +
    +
    @@ -1343,7 +1370,7 @@ template<int M, int N, class T > diff --git a/namespaceyage_1_1IoManager.html b/namespaceyage_1_1IoManager.html index f5bdd1a6..3535dc52 100644 --- a/namespaceyage_1_1IoManager.html +++ b/namespaceyage_1_1IoManager.html @@ -128,7 +128,7 @@ Functions diff --git a/namespaceyage_1_1details.html b/namespaceyage_1_1details.html index 74eac110..018f3221 100644 --- a/namespaceyage_1_1details.html +++ b/namespaceyage_1_1details.html @@ -106,7 +106,7 @@ Classes diff --git a/namespaceyage_1_1matrix.html b/namespaceyage_1_1matrix.html index 0d7dd6af..fdcb73c5 100644 --- a/namespaceyage_1_1matrix.html +++ b/namespaceyage_1_1matrix.html @@ -219,7 +219,7 @@ template<int M, int N, class T > diff --git a/noncopyable_8h.html b/noncopyable_8h.html index 6a5e283f..f85543bc 100644 --- a/noncopyable_8h.html +++ b/noncopyable_8h.html @@ -119,7 +119,7 @@ Namespaces diff --git a/noncopyable_8h_source.html b/noncopyable_8h_source.html index 3590ef68..2dd823f0 100644 --- a/noncopyable_8h_source.html +++ b/noncopyable_8h_source.html @@ -114,7 +114,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/pages.html b/pages.html index 58c0f5dd..d5309084 100644 --- a/pages.html +++ b/pages.html @@ -96,7 +96,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/particlebody_8cpp.html b/particlebody_8cpp.html index c7be0707..9702a8d7 100644 --- a/particlebody_8cpp.html +++ b/particlebody_8cpp.html @@ -98,7 +98,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); More...

    #include <yage/physics/particlebody.h>
    #include <cmath>
    -#include <iostream>
    @@ -114,7 +113,7 @@ Namespaces diff --git a/particlebody_8h.html b/particlebody_8h.html index 405841ae..f5949a6c 100644 --- a/particlebody_8h.html +++ b/particlebody_8h.html @@ -121,7 +121,7 @@ Namespaces diff --git a/particlebody_8h_source.html b/particlebody_8h_source.html index 54a24f31..d9a198ed 100644 --- a/particlebody_8h_source.html +++ b/particlebody_8h_source.html @@ -114,17 +114,17 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    30 } // namespace yage
    body.h
    -*- c++ -*-
    yage::Vector2< double >
    -
    yage::ParticleBody::ParticleBody
    ParticleBody(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true)
    Definition: particlebody.cpp:18
    +
    yage::ParticleBody::ParticleBody
    ParticleBody(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true)
    Definition: particlebody.cpp:17
    yage::ParticleBody
    Definition: particlebody.h:18
    yage::Body
    Definition: body.h:17
    matrix.h
    -*- c++ -*-
    -
    yage::ParticleBody::applyForce
    void applyForce(const Vector2d &force) override
    Definition: particlebody.cpp:24
    -
    yage::Vector2d
    Vector2< double > Vector2d
    Definition of a 2D vector.
    Definition: matrix.h:398
    -
    yage::ParticleBody::update
    void update() override
    Definition: particlebody.cpp:29
    +
    yage::ParticleBody::applyForce
    void applyForce(const Vector2d &force) override
    Definition: particlebody.cpp:23
    +
    yage::Vector2d
    Vector2< double > Vector2d
    Definition of a 2D vector.
    Definition: matrix.h:394
    +
    yage::ParticleBody::update
    void update() override
    Definition: particlebody.cpp:28
    diff --git a/physics_8h.html b/physics_8h.html index 2d1679ec..2f526302 100644 --- a/physics_8h.html +++ b/physics_8h.html @@ -110,7 +110,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/physics_8h_source.html b/physics_8h_source.html index 7ede7f4c..a5050082 100644 --- a/physics_8h_source.html +++ b/physics_8h_source.html @@ -108,7 +108,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/rectanglecollider_8cpp.html b/rectanglecollider_8cpp.html index 7911e599..f3c7d168 100644 --- a/rectanglecollider_8cpp.html +++ b/rectanglecollider_8cpp.html @@ -112,7 +112,7 @@ Namespaces diff --git a/rectanglecollider_8h.html b/rectanglecollider_8h.html index fde1daf1..7a54b85d 100644 --- a/rectanglecollider_8h.html +++ b/rectanglecollider_8h.html @@ -121,7 +121,7 @@ Namespaces diff --git a/rectanglecollider_8h_source.html b/rectanglecollider_8h_source.html index 8fd610cb..5423c07a 100644 --- a/rectanglecollider_8h_source.html +++ b/rectanglecollider_8h_source.html @@ -119,7 +119,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/resourcemanager_8cpp.html b/resourcemanager_8cpp.html index 398099c8..3af476e7 100644 --- a/resourcemanager_8cpp.html +++ b/resourcemanager_8cpp.html @@ -113,7 +113,7 @@ Namespaces diff --git a/resourcemanager_8h.html b/resourcemanager_8h.html index 21c32f1f..dc12b1c3 100644 --- a/resourcemanager_8h.html +++ b/resourcemanager_8h.html @@ -121,7 +121,7 @@ Namespaces diff --git a/resourcemanager_8h_source.html b/resourcemanager_8h_source.html index 08a87c7b..2ec10b8e 100644 --- a/resourcemanager_8h_source.html +++ b/resourcemanager_8h_source.html @@ -121,7 +121,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/rigidbody_8cpp.html b/rigidbody_8cpp.html index e0fd813e..fb67a731 100644 --- a/rigidbody_8cpp.html +++ b/rigidbody_8cpp.html @@ -112,7 +112,7 @@ Namespaces diff --git a/rigidbody_8h.html b/rigidbody_8h.html index 782fbef4..8593c11f 100644 --- a/rigidbody_8h.html +++ b/rigidbody_8h.html @@ -121,7 +121,7 @@ Namespaces diff --git a/rigidbody_8h_source.html b/rigidbody_8h_source.html index bc13c083..12f6aa28 100644 --- a/rigidbody_8h_source.html +++ b/rigidbody_8h_source.html @@ -112,12 +112,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    yage::ParticleBody
    Definition: particlebody.h:18
    yage::RigidBody::RigidBody
    RigidBody(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true)
    Definition: rigidbody.cpp:15
    yage::RigidBody
    Definition: rigidbody.h:19
    -
    yage::Vector2d
    Vector2< double > Vector2d
    Definition of a 2D vector.
    Definition: matrix.h:398
    +
    yage::Vector2d
    Vector2< double > Vector2d
    Definition of a 2D vector.
    Definition: matrix.h:394
    particlebody.h
    -*- c++ -*-
    diff --git a/search/all_0.js b/search/all_0.js index 94d82c92..3b4ca979 100644 --- a/search/all_0.js +++ b/search/all_0.js @@ -6,8 +6,9 @@ var searchData= ['active',['Active',['../classyage_1_1Active.html#a7cd7344f0b8b7aa93ac0449e2fbbf7bd',1,'yage::Active']]], ['active_2ecpp',['active.cpp',['../active_8cpp.html',1,'']]], ['active_2eh',['active.h',['../active_8h.html',1,'']]], + ['active_5fmask_5f',['active_mask_',['../classyage_1_1System.html#ab3278915c6f1c4140eed6b39a034c5a6',1,'yage::System']]], ['add',['add',['../classyage_1_1Logger.html#a5ec9a752e8cbb278342fdb49520fbcdd',1,'yage::Logger']]], - ['addspace',['addSpace',['../classyage_1_1Engine.html#a9158d21e4aee58599513dc6bbe6a62e2',1,'yage::Engine']]], + ['add_5fcomponent',['add_component',['../classyage_1_1EntityManager.html#a134194877cce6003b2bd2245b78cd876',1,'yage::EntityManager']]], ['apostrophe',['APOSTROPHE',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a9df35983f4024e31955de0f1e545e888',1,'yage']]], ['applyforce',['applyForce',['../classyage_1_1Body.html#a56310be4f9d7d2d4e7f954af0e0a5878',1,'yage::Body::applyForce()'],['../classyage_1_1ParticleBody.html#a4d6c52fc2106ebd3f131d2be1fa3f11b',1,'yage::ParticleBody::applyForce()']]] ]; diff --git a/search/all_1.js b/search/all_1.js index 4adbef51..5495887e 100644 --- a/search/all_1.js +++ b/search/all_1.js @@ -4,9 +4,10 @@ var searchData= ['backslash',['BACKSLASH',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822aecb4a6f3440c2ed0dff59f17375a27c0',1,'yage']]], ['backspace',['BACKSPACE',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a6f5d8e41084b4d3d47fa621c459eede1',1,'yage']]], ['basecomponent',['BaseComponent',['../classyage_1_1BaseComponent.html',1,'yage']]], + ['basesystem',['BaseSystem',['../classyage_1_1BaseSystem.html',1,'yage']]], ['begin',['begin',['../classyage_1_1Matrix.html#a83d77d3a40ced5e2b703a6d66b6e6055',1,'yage::Matrix::begin()'],['../classyage_1_1SpriteBatch.html#af6293aac69e1124199297e5b921a4872',1,'yage::SpriteBatch::begin()']]], - ['body',['Body',['../classyage_1_1Body.html',1,'yage']]], ['body',['Body',['../classyage_1_1Body.html#aeca769807d9b6f6fb3c9f61deaa83b86',1,'yage::Body']]], + ['body',['Body',['../classyage_1_1Body.html',1,'yage']]], ['body_2ecpp',['body.cpp',['../body_8cpp.html',1,'']]], ['body_2eh',['body.h',['../body_8h.html',1,'']]], ['borderless',['BORDERLESS',['../namespaceyage.html#a09d41deeced5fca5df9dc680c9e77c38afa8ece0eef17c604369ca69bc4b09970',1,'yage']]], diff --git a/search/all_12.js b/search/all_12.js index 4da1bec6..07d79eab 100644 --- a/search/all_12.js +++ b/search/all_12.js @@ -19,10 +19,7 @@ var searchData= ['size_5f',['size_',['../classyage_1_1Collider.html#ad7456f84c1acb4fd9ee0ea67c8ee7308',1,'yage::Collider']]], ['skip',['skip',['../structstbi__io__callbacks.html#a864be557872041ac06e1509caf05cc83',1,'stbi_io_callbacks']]], ['slash',['SLASH',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a646da671ca01bb5d84dbb5fb2238dc8e',1,'yage']]], - ['space',['Space',['../classyage_1_1Space.html',1,'yage']]], - ['space',['Space',['../classyage_1_1Space.html#a40c248478ae521bb4e0d5119002cf8e9',1,'yage::Space::Space()'],['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a6506ae39fdca9845e3a6de3865183e57',1,'yage::SPACE()']]], - ['space_2ecpp',['space.cpp',['../space_8cpp.html',1,'']]], - ['space_2eh',['space.h',['../space_8h.html',1,'']]], + ['space',['SPACE',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a6506ae39fdca9845e3a6de3865183e57',1,'yage']]], ['spritebatch',['SpriteBatch',['../classyage_1_1SpriteBatch.html',1,'yage']]], ['spritebatch',['SpriteBatch',['../classyage_1_1SpriteBatch.html#afda50a8a2a6c9ffd1b9d962fae223f8a',1,'yage::SpriteBatch::SpriteBatch()'],['../classyage_1_1SpriteBatch.html#a30a46a7182235a739916d540781af652',1,'yage::SpriteBatch::SpriteBatch(const SpriteBatch &)=delete'],['../classyage_1_1SpriteBatch.html#a7f18a506f4188acd2219da8147dc0e1e',1,'yage::SpriteBatch::SpriteBatch(SpriteBatch &&)=delete']]], ['spritebatch_2ecpp',['spritebatch.cpp',['../spritebatch_8cpp.html',1,'']]], diff --git a/search/all_13.js b/search/all_13.js index ca263b60..c751f531 100644 --- a/search/all_13.js +++ b/search/all_13.js @@ -4,7 +4,7 @@ var searchData= ['t',['T',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822ab9ece18c950afbfa6b0fdbfa4ff731d3',1,'yage']]], ['tab',['TAB',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822af684bf05fa3e81528c84d1d281d839f1',1,'yage']]], ['texture',['Texture',['../structyage_1_1Texture.html',1,'yage']]], - ['texture',['Texture',['../structyage_1_1Texture.html#a0cef080bceaaf5e702985f5494ea35d5',1,'yage::Texture::Texture()'],['../structyage_1_1Texture.html#af0a85aa4202d12fca9c1f52085d26850',1,'yage::Texture::Texture(GLuint id_i, int width_i, int height_i, int x_i=1, int y_i=1)'],['../structyage_1_1details_1_1RenderBatch.html#abf26b15420f34052270a1204d89ee687',1,'yage::details::RenderBatch::texture()'],['../structyage_1_1details_1_1Glyph.html#aba58f02d34ba363ab3435e2328e4bfcc',1,'yage::details::Glyph::texture()']]], + ['texture',['texture',['../structyage_1_1details_1_1RenderBatch.html#abf26b15420f34052270a1204d89ee687',1,'yage::details::RenderBatch::texture()'],['../structyage_1_1details_1_1Glyph.html#aba58f02d34ba363ab3435e2328e4bfcc',1,'yage::details::Glyph::texture()'],['../structyage_1_1Texture.html#a0cef080bceaaf5e702985f5494ea35d5',1,'yage::Texture::Texture()'],['../structyage_1_1Texture.html#af0a85aa4202d12fca9c1f52085d26850',1,'yage::Texture::Texture(GLuint id_i, int width_i, int height_i, int x_i=1, int y_i=1)']]], ['texture_2eh',['texture.h',['../texture_8h.html',1,'']]], ['texturecache',['TextureCache',['../classyage_1_1TextureCache.html',1,'yage']]], ['texturecache',['TextureCache',['../classyage_1_1TextureCache.html#a5f6af0bd513dd393061b2d9d18362692',1,'yage::TextureCache']]], diff --git a/search/all_14.js b/search/all_14.js index 44f3bf82..702ee81b 100644 --- a/search/all_14.js +++ b/search/all_14.js @@ -3,8 +3,8 @@ var searchData= ['u',['u',['../structyage_1_1UV.html#aa726c11ba59a9a5edffef27ac3845053',1,'yage::UV::u()'],['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a4c614360da93c0a041b22e537de151eb',1,'yage::U()']]], ['unknown',['UNKNOWN',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a696b031073e74bf2cb98e5ef201d4aa3',1,'yage']]], ['up',['UP',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822afbaedde498cdead4f2780217646e9ba1',1,'yage']]], - ['update',['update',['../classyage_1_1Camera.html#a99f0af50db990c5558fd0b7b82f3978c',1,'yage::Camera::update()'],['../classyage_1_1Engine.html#a8d888a2871d93f40b98ecf3548dd8d67',1,'yage::Engine::update()'],['../classyage_1_1Space.html#a08a283a165bf29d2eec4ffc5a7629ce2',1,'yage::Space::update()'],['../classyage_1_1System.html#ac47853cdad59ede40876849c78b279be',1,'yage::System::update()'],['../classyage_1_1Body.html#a17017d183f3f9ecdff779fd6f82c5d36',1,'yage::Body::update()'],['../classyage_1_1ParticleBody.html#a1f24ef00fd59254397d677d90936ec4c',1,'yage::ParticleBody::update()']]], + ['update',['update',['../classyage_1_1Camera.html#a99f0af50db990c5558fd0b7b82f3978c',1,'yage::Camera::update()'],['../classyage_1_1BaseSystem.html#ad483b78065fb91550b15f845ccabba69',1,'yage::BaseSystem::update()'],['../classyage_1_1Body.html#a17017d183f3f9ecdff779fd6f82c5d36',1,'yage::Body::update()'],['../classyage_1_1ParticleBody.html#a1f24ef00fd59254397d677d90936ec4c',1,'yage::ParticleBody::update()']]], ['use',['use',['../classyage_1_1Shader.html#a8cd66c177f148ac0b619766188696e6c',1,'yage::Shader']]], - ['uv',['UV',['../structyage_1_1UV.html#ae236139f3a5f6024aac1e21bd93b7bde',1,'yage::UV::UV()=default'],['../structyage_1_1UV.html#ac918524789292937aae5803df3c2673f',1,'yage::UV::UV(float u_, float v_)'],['../structyage_1_1Vertex.html#a2d1923353f0e50e7753ff1ae2d9ba84e',1,'yage::Vertex::uv()']]], + ['uv',['uv',['../structyage_1_1Vertex.html#a2d1923353f0e50e7753ff1ae2d9ba84e',1,'yage::Vertex::uv()'],['../structyage_1_1UV.html#ae236139f3a5f6024aac1e21bd93b7bde',1,'yage::UV::UV()=default'],['../structyage_1_1UV.html#ac918524789292937aae5803df3c2673f',1,'yage::UV::UV(float u_, float v_)']]], ['uv',['UV',['../structyage_1_1UV.html',1,'yage']]] ]; diff --git a/search/all_1a.js b/search/all_1a.js index ed912c35..531f9852 100644 --- a/search/all_1a.js +++ b/search/all_1a.js @@ -2,7 +2,6 @@ var searchData= [ ['_7eactive',['~Active',['../classyage_1_1Active.html#ab69d08cf4804b59ac9db283015e749f2',1,'yage::Active']]], ['_7ecollisionbody',['~CollisionBody',['../classyage_1_1CollisionBody.html#a758b2f867f276f4c7e02ebda2cd04c8b',1,'yage::CollisionBody']]], - ['_7eengine',['~Engine',['../classyage_1_1Engine.html#a53cb4a81be4fc89f4d44057b75fbbcd6',1,'yage::Engine']]], ['_7elogmessage',['~LogMessage',['../classyage_1_1LogMessage.html#af82ed7ceef5cfdac54ad2e176deb9fca',1,'yage::LogMessage']]], ['_7enoncopyable',['~NonCopyable',['../classyage_1_1NonCopyable.html#a06190acb5123fdfc38675191ae547ba8',1,'yage::NonCopyable']]], ['_7eshader',['~Shader',['../classyage_1_1Shader.html#a9307c4f3cfaf5e584b70601294e09bdd',1,'yage::Shader']]], diff --git a/search/all_2.js b/search/all_2.js index a229080e..5302320c 100644 --- a/search/all_2.js +++ b/search/all_2.js @@ -21,10 +21,16 @@ var searchData= ['colsize',['colSize',['../classyage_1_1Matrix.html#a2148cd52008892765ad90250c68afba1',1,'yage::Matrix']]], ['comma',['COMMA',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a4d9b3e9fc12849d060371eb65154c751',1,'yage']]], ['component',['Component',['../classyage_1_1Component.html',1,'yage']]], + ['component_2ecpp',['component.cpp',['../component_8cpp.html',1,'']]], + ['component_2eh',['component.h',['../component_8h.html',1,'']]], + ['component_5fgroup_5f',['component_group_',['../classyage_1_1EntityManager.html#ae9c24dfd7dfc041454b6678dbddc55e2',1,'yage::EntityManager']]], + ['component_5fmasks_5f',['component_masks_',['../classyage_1_1EntityManager.html#a579c5e72ace05025af0b5beb24f6766b',1,'yage::EntityManager']]], ['componentgroup',['ComponentGroup',['../classyage_1_1ComponentGroup.html',1,'yage']]], + ['componentmask',['ComponentMask',['../namespaceyage.html#a868aca3b92f2d669736ab696d2dc2847',1,'yage']]], + ['components_5f',['components_',['../classyage_1_1ComponentGroup.html#abed4de09aa22a48680c52824029d7485',1,'yage::ComponentGroup']]], ['core_2ecpp',['core.cpp',['../core_8cpp.html',1,'']]], ['core_2eh',['core.h',['../core_8h.html',1,'']]], ['create',['create',['../classyage_1_1Window.html#afdf3e2826526abc23a4e206c9a8a8745',1,'yage::Window::create()'],['../classyage_1_1Active.html#aa2ed414bbe94fdd51c8aeb7ada73a064',1,'yage::Active::create()']]], - ['createentity',['createEntity',['../classyage_1_1EntityManager.html#a646cf1110abdc0a4398c994ead5f537d',1,'yage::EntityManager::createEntity()'],['../classyage_1_1Space.html#a41bc332ffb3042c0872ede8c53ff1fa4',1,'yage::Space::createEntity()']]], + ['create_5fentity',['create_entity',['../classyage_1_1EntityManager.html#a5f804a6e96010891615f2a25c579d09a',1,'yage::EntityManager']]], ['cube_2eh',['cube.h',['../cube_8h.html',1,'']]] ]; diff --git a/search/all_3.js b/search/all_3.js index e1afb4a5..585812cd 100644 --- a/search/all_3.js +++ b/search/all_3.js @@ -4,7 +4,8 @@ var searchData= ['data_5f',['data_',['../classyage_1_1Matrix.html#a0ab11922319366f6e74f6e9e7d7abeed',1,'yage::Matrix']]], ['debug',['DEBUG',['../namespaceyage.html#a4ac616fa26af17775ed558a4c08e4788adc30ec20708ef7b0f641ef78b7880a15',1,'yage']]], ['delete',['DELETE',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a32f68a60cef40faedbc6af20298c1a1e',1,'yage']]], - ['deleteentity',['deleteEntity',['../classyage_1_1EntityManager.html#a246e10663f55a9f4817cbde23a7a36c9',1,'yage::EntityManager']]], + ['delete_5fentity',['delete_entity',['../classyage_1_1EntityManager.html#a1a73fc2ccf0851d8f43a951db889cba9',1,'yage::EntityManager']]], + ['deleted_5f',['deleted_',['../classyage_1_1EntityManager.html#aa895f8d9e3e741fba7b9b17abd9d3675',1,'yage::EntityManager']]], ['depth',['depth',['../structyage_1_1details_1_1Glyph.html#ae5398583bd0b4c1d6b334bf3902903d9',1,'yage::details::Glyph']]], ['dot',['dot',['../namespaceyage_1_1matrix.html#ac4d2f55a5c3369ec42001776a582c30a',1,'yage::matrix']]], ['down',['DOWN',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822ac4e0e4e3118472beeb2ae75827450f1f',1,'yage']]], diff --git a/search/all_4.js b/search/all_4.js index 5f9070b9..620eef6b 100644 --- a/search/all_4.js +++ b/search/all_4.js @@ -2,15 +2,12 @@ var searchData= [ ['e',['E',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a3a3ea00cfc35332cedf6e5e9a32e94da',1,'yage']]], ['end',['end',['../classyage_1_1Matrix.html#a20ea5fe16d27ef15f775b5497cadc851',1,'yage::Matrix::end()'],['../classyage_1_1SpriteBatch.html#af8b705cdad7ceefa902f3be620ac8632',1,'yage::SpriteBatch::end()'],['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822ab1a326c06d88bf042f73d70f50197905',1,'yage::END()']]], - ['engine',['Engine',['../classyage_1_1Engine.html',1,'yage']]], - ['engine_2ecpp',['engine.cpp',['../engine_8cpp.html',1,'']]], - ['engine_2eh',['engine.h',['../engine_8h.html',1,'']]], ['enter',['ENTER',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a331b3100a485d8cacff1d3df8e9b0c13',1,'yage']]], ['entity',['Entity',['../namespaceyage.html#aa8bc60c76b5240a55672ce5b8e288764',1,'yage']]], ['entity_2ecpp',['entity.cpp',['../entity_8cpp.html',1,'']]], ['entity_2eh',['entity.h',['../entity_8h.html',1,'']]], ['entitymanager',['EntityManager',['../classyage_1_1EntityManager.html',1,'yage']]], - ['entitymanager',['EntityManager',['../classyage_1_1Component.html#a6f579cda6059d102e9074e11a27e0282',1,'yage::Component::EntityManager()'],['../classyage_1_1ComponentGroup.html#a6f579cda6059d102e9074e11a27e0282',1,'yage::ComponentGroup::EntityManager()'],['../classyage_1_1EntityManager.html#a255fa9aff3e6b208eea0c38d8caf08f8',1,'yage::EntityManager::EntityManager()=default'],['../classyage_1_1EntityManager.html#a0099fe0038967007891d2b7575090915',1,'yage::EntityManager::EntityManager(Space *space)'],['../classyage_1_1EntityManager.html#af1644095d96e43ac000375ba7f7ee021',1,'yage::EntityManager::EntityManager(Space *space, std::size_t n)']]], + ['entitymanager',['EntityManager',['../classyage_1_1BaseComponent.html#a6f579cda6059d102e9074e11a27e0282',1,'yage::BaseComponent']]], ['eof',['eof',['../structstbi__io__callbacks.html#a2c4f3c3b7c75a2e74a35caf74fb8d177',1,'stbi_io_callbacks']]], ['equal',['EQUAL',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a969f331a87d8c958473c32b4d0e61a44',1,'yage']]], ['error',['ERROR',['../namespaceyage.html#a4ac616fa26af17775ed558a4c08e4788abb1ca97ec761fc37101737ba0aa2e7c5',1,'yage']]], diff --git a/search/all_6.js b/search/all_6.js index 08e1ba62..e171d5d1 100644 --- a/search/all_6.js +++ b/search/all_6.js @@ -2,6 +2,7 @@ var searchData= [ ['g',['g',['../structyage_1_1Colour.html#a205d3a63268f4879adf27aabdf71a6dd',1,'yage::Colour::g()'],['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822adfcf28d0734569a6a693bc8194de62bf',1,'yage::G()']]], ['getcol',['getCol',['../classyage_1_1Matrix.html#a74475218328d6ef69701a6e261df925b',1,'yage::Matrix']]], + ['getgroup',['getGroup',['../classyage_1_1BaseComponent.html#a52011652fe97bf50b4a43936f4846ccc',1,'yage::BaseComponent']]], ['getrow',['getRow',['../classyage_1_1Matrix.html#a960273d1ac46a8edb71ceee08ee639b8',1,'yage::Matrix']]], ['gettexture',['getTexture',['../classyage_1_1ResourceManager.html#aec533f266d9b432050faed301f4191dc',1,'yage::ResourceManager::getTexture()'],['../classyage_1_1TextureCache.html#ad4929640230f9a74fcd634416fe0974f',1,'yage::TextureCache::getTexture()']]], ['gl_5fcube_5fbuffer',['gl_cube_buffer',['../cube_8h.html#a281edacbb5e3df9fd85b17e888ba07c5',1,'cube.h']]], @@ -12,6 +13,6 @@ var searchData= ['grave_5faccent',['GRAVE_ACCENT',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a1547ad05c44be2cc614be32159bf666b',1,'yage']]], ['gravity',['GRAVITY',['../classyage_1_1Body.html#a4f61913cf00244a6160e09cda846f766',1,'yage::Body']]], ['gravity_5f',['gravity_',['../classyage_1_1Body.html#a454a7c59d07c94afb0a35c3d53ec2191',1,'yage::Body']]], - ['group',['Group',['../classyage_1_1BaseComponent.html#a55b026d7deb37888f67636ff22fc32c8',1,'yage::BaseComponent']]], - ['group_5fid_5fcounter_5f',['group_id_counter_',['../classyage_1_1BaseComponent.html#a529f6d4864bac810a9f5419bb0fccd92',1,'yage::BaseComponent']]] + ['group_5fid_5fcounter_5f',['group_id_counter_',['../classyage_1_1BaseComponent.html#ac864b53e6f3d6ecce6ebe3cfac40daf4',1,'yage::BaseComponent']]], + ['groupid',['GroupId',['../namespaceyage.html#ab24c66406a581b3a0a5ef1b06cd21100',1,'yage']]] ]; diff --git a/search/all_8.js b/search/all_8.js index 2f8caecf..55d91272 100644 --- a/search/all_8.js +++ b/search/all_8.js @@ -6,11 +6,12 @@ var searchData= ['imageloader_2ecpp',['imageloader.cpp',['../imageloader_8cpp.html',1,'']]], ['imageloader_2eh',['imageloader.h',['../imageloader_8h.html',1,'']]], ['info',['INFO',['../namespaceyage.html#a4ac616fa26af17775ed558a4c08e4788a551b723eafd6a31d444fcb2f5920fbd3',1,'yage']]], - ['init',['init',['../classyage_1_1Engine.html#a41073d8b8117e567357fe46fed01bbe4',1,'yage::Engine::init()'],['../classyage_1_1System.html#ad697e043fcf7dbcf77821f49073f5af9',1,'yage::System::init()'],['../namespaceyage.html#a4fc8b4d2a19d4c7f7f1bd42a788827ce',1,'yage::init()']]], + ['init',['init',['../namespaceyage.html#a4fc8b4d2a19d4c7f7f1bd42a788827ce',1,'yage']]], ['input_2eh',['input.h',['../input_8h.html',1,'']]], ['insert',['INSERT',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a61ee777e7f71dc466c3b2c685d8d313b',1,'yage']]], ['inside',['inside',['../classyage_1_1Collider.html#a4a8ad9e664a0015e023a70d196302fe9',1,'yage::Collider::inside()'],['../classyage_1_1RectangleCollider.html#ac8d8e6bdb12c21be12f7d398242147c4',1,'yage::RectangleCollider::inside()']]], - ['instance',['instance',['../classyage_1_1Logger.html#ad165738c5b738d80a14b0ee1319cae2e',1,'yage::Logger::instance()'],['../classyage_1_1Engine.html#a7e4303fa3bd951ee64e166d6e0fb7b33',1,'yage::Engine::instance()']]], + ['instance',['instance',['../classyage_1_1Logger.html#ad165738c5b738d80a14b0ee1319cae2e',1,'yage::Logger']]], ['iomanager_2ecpp',['iomanager.cpp',['../iomanager_8cpp.html',1,'']]], - ['iomanager_2eh',['iomanager.h',['../iomanager_8h.html',1,'']]] + ['iomanager_2eh',['iomanager.h',['../iomanager_8h.html',1,'']]], + ['is_5fvalid',['is_valid',['../classyage_1_1EntityManager.html#a7e89a1d61ff4cd047b41eb363839369f',1,'yage::EntityManager']]] ]; diff --git a/search/all_a.js b/search/all_a.js index 95d31d2f..bb16a2cc 100644 --- a/search/all_a.js +++ b/search/all_a.js @@ -2,7 +2,7 @@ var searchData= [ ['k',['K',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822aa5f3c6a11b03839d46af9fb43c97c188',1,'yage']]], ['key',['key',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822',1,'yage']]], - ['keypressed',['keyPressed',['../classyage_1_1Window.html#ae95d8670801c04af43da9e4fcc0e1006',1,'yage::Window']]], + ['keypressed',['keyPressed',['../classyage_1_1Window.html#a946b9e9e49af8673aca35f22f620e49e',1,'yage::Window']]], ['kp_5f0',['KP_0',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822affb2ce8868d49c78376bf7e76c88fd52',1,'yage']]], ['kp_5f1',['KP_1',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822afdcbdc22f7e22388bf5905c290bcfe4b',1,'yage']]], ['kp_5f2',['KP_2',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a2d0bfa737eccfce7842cd2230eed6712',1,'yage']]], diff --git a/search/all_c.js b/search/all_c.js index f07665fc..3d8ed43f 100644 --- a/search/all_c.js +++ b/search/all_c.js @@ -2,12 +2,11 @@ var searchData= [ ['m',['M',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822a69691c7bdcc3ce6d5d8a1361f22d04ac',1,'yage']]], ['main_2emd',['main.md',['../main_8md.html',1,'']]], - ['mainloop',['mainLoop',['../classyage_1_1Engine.html#a245478397be4ca0d9ac6af84c1753e42',1,'yage::Engine']]], ['makeconsolesink',['makeConsoleSink',['../namespaceyage.html#ab54350a8dbf59338c99ab4f43cfa2858',1,'yage']]], ['makefilesink',['makeFileSink',['../namespaceyage.html#ad537beeea51c8314e407fadd24affc34',1,'yage::makeFileSink(const std::string &filename)'],['../namespaceyage.html#a6b288197f6a97f197dda60e5b54f1841',1,'yage::makeFileSink(std::string &&filename)']]], ['mass_5f',['mass_',['../classyage_1_1Body.html#a01b2a500e71bc88f2cb597f376bc8289',1,'yage::Body']]], - ['matrix',['Matrix',['../classyage_1_1Matrix.html#a73b7d1f94f4f72a2294b71b3a35794ad',1,'yage::Matrix::Matrix()'],['../classyage_1_1Matrix.html#a191b02ff353d04f18779d4c84e20927b',1,'yage::Matrix::Matrix(const std::vector< Type > &data)']]], ['matrix',['Matrix',['../classyage_1_1Matrix.html',1,'yage']]], + ['matrix',['Matrix',['../classyage_1_1Matrix.html#a73b7d1f94f4f72a2294b71b3a35794ad',1,'yage::Matrix::Matrix()'],['../classyage_1_1Matrix.html#a191b02ff353d04f18779d4c84e20927b',1,'yage::Matrix::Matrix(const std::vector< Type > &data)']]], ['matrix_2eh',['matrix.h',['../matrix_8h.html',1,'']]], ['matrix_2emd',['matrix.md',['../matrix_8md.html',1,'']]], ['matrix_3c_20rows_2c_201_2c_20double_20_3e',['Matrix< Rows, 1, double >',['../classyage_1_1Matrix.html',1,'yage']]], @@ -18,6 +17,5 @@ var searchData= ['min_5flevel_5f',['min_level_',['../namespaceyage.html#a8eb37ee67abe3858f039d36ec2bb6d3a',1,'yage']]], ['minus',['MINUS',['../namespaceyage.html#ad5a9307442e5daa8810aff942564a822affc0d9b54a1fe677c4c9e6b050e67c81',1,'yage']]], ['move',['move',['../classyage_1_1Camera.html#a012820185cceb451926bc4ef1607b324',1,'yage::Camera']]], - ['movement',['Movement',['../structMovement.html',1,'']]], ['multiply',['multiply',['../namespaceyage_1_1matrix.html#a277125ad9fa06a7119c59d350e129985',1,'yage::matrix']]] ]; diff --git a/search/classes_1.js b/search/classes_1.js index aaaf9297..2f951f68 100644 --- a/search/classes_1.js +++ b/search/classes_1.js @@ -1,5 +1,6 @@ var searchData= [ ['basecomponent',['BaseComponent',['../classyage_1_1BaseComponent.html',1,'yage']]], + ['basesystem',['BaseSystem',['../classyage_1_1BaseSystem.html',1,'yage']]], ['body',['Body',['../classyage_1_1Body.html',1,'yage']]] ]; diff --git a/search/classes_3.js b/search/classes_3.js index da45b8a5..62c21b93 100644 --- a/search/classes_3.js +++ b/search/classes_3.js @@ -1,5 +1,4 @@ var searchData= [ - ['engine',['Engine',['../classyage_1_1Engine.html',1,'yage']]], ['entitymanager',['EntityManager',['../classyage_1_1EntityManager.html',1,'yage']]] ]; diff --git a/search/classes_8.js b/search/classes_8.js index 1ec4e44a..5c0e52cf 100644 --- a/search/classes_8.js +++ b/search/classes_8.js @@ -3,6 +3,5 @@ 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']]], - ['meta',['Meta',['../structyage_1_1LogMessage_1_1Meta.html',1,'yage::LogMessage']]], - ['movement',['Movement',['../structMovement.html',1,'']]] + ['meta',['Meta',['../structyage_1_1LogMessage_1_1Meta.html',1,'yage::LogMessage']]] ]; diff --git a/search/classes_c.js b/search/classes_c.js index 1035b0df..7500f3d9 100644 --- a/search/classes_c.js +++ b/search/classes_c.js @@ -1,7 +1,6 @@ var searchData= [ ['shader',['Shader',['../classyage_1_1Shader.html',1,'yage']]], - ['space',['Space',['../classyage_1_1Space.html',1,'yage']]], ['spritebatch',['SpriteBatch',['../classyage_1_1SpriteBatch.html',1,'yage']]], ['stbi_5fio_5fcallbacks',['stbi_io_callbacks',['../structstbi__io__callbacks.html',1,'']]], ['syncqueue',['SyncQueue',['../classyage_1_1SyncQueue.html',1,'yage']]], diff --git a/search/files_2.js b/search/files_2.js index 6d366800..f144b2be 100644 --- a/search/files_2.js +++ b/search/files_2.js @@ -4,6 +4,8 @@ var searchData= ['camera_2eh',['camera.h',['../camera_8h.html',1,'']]], ['collider_2eh',['collider.h',['../collider_8h.html',1,'']]], ['collisionbody_2eh',['collisionbody.h',['../collisionbody_8h.html',1,'']]], + ['component_2ecpp',['component.cpp',['../component_8cpp.html',1,'']]], + ['component_2eh',['component.h',['../component_8h.html',1,'']]], ['core_2ecpp',['core.cpp',['../core_8cpp.html',1,'']]], ['core_2eh',['core.h',['../core_8h.html',1,'']]], ['cube_2eh',['cube.h',['../cube_8h.html',1,'']]] diff --git a/search/files_3.js b/search/files_3.js index fe203f4a..3db52a89 100644 --- a/search/files_3.js +++ b/search/files_3.js @@ -1,7 +1,5 @@ var searchData= [ - ['engine_2ecpp',['engine.cpp',['../engine_8cpp.html',1,'']]], - ['engine_2eh',['engine.h',['../engine_8h.html',1,'']]], ['entity_2ecpp',['entity.cpp',['../entity_8cpp.html',1,'']]], ['entity_2eh',['entity.h',['../entity_8h.html',1,'']]], ['exception_2ecpp',['exception.cpp',['../exception_8cpp.html',1,'']]], diff --git a/search/files_a.js b/search/files_a.js index 999ac52d..68d6468a 100644 --- a/search/files_a.js +++ b/search/files_a.js @@ -2,8 +2,6 @@ var searchData= [ ['shader_2ecpp',['shader.cpp',['../shader_8cpp.html',1,'']]], ['shader_2eh',['shader.h',['../shader_8h.html',1,'']]], - ['space_2ecpp',['space.cpp',['../space_8cpp.html',1,'']]], - ['space_2eh',['space.h',['../space_8h.html',1,'']]], ['spritebatch_2ecpp',['spritebatch.cpp',['../spritebatch_8cpp.html',1,'']]], ['spritebatch_2eh',['spritebatch.h',['../spritebatch_8h.html',1,'']]], ['spritebatch_2emd',['spritebatch.md',['../spritebatch_8md.html',1,'']]], diff --git a/search/functions_0.js b/search/functions_0.js index b36ca339..8a9b1544 100644 --- a/search/functions_0.js +++ b/search/functions_0.js @@ -2,6 +2,6 @@ var searchData= [ ['active',['Active',['../classyage_1_1Active.html#a7cd7344f0b8b7aa93ac0449e2fbbf7bd',1,'yage::Active']]], ['add',['add',['../classyage_1_1Logger.html#a5ec9a752e8cbb278342fdb49520fbcdd',1,'yage::Logger']]], - ['addspace',['addSpace',['../classyage_1_1Engine.html#a9158d21e4aee58599513dc6bbe6a62e2',1,'yage::Engine']]], + ['add_5fcomponent',['add_component',['../classyage_1_1EntityManager.html#a134194877cce6003b2bd2245b78cd876',1,'yage::EntityManager']]], ['applyforce',['applyForce',['../classyage_1_1Body.html#a56310be4f9d7d2d4e7f954af0e0a5878',1,'yage::Body::applyForce()'],['../classyage_1_1ParticleBody.html#a4d6c52fc2106ebd3f131d2be1fa3f11b',1,'yage::ParticleBody::applyForce()']]] ]; diff --git a/search/functions_11.js b/search/functions_11.js index 5bfd4035..6f89dfc9 100644 --- a/search/functions_11.js +++ b/search/functions_11.js @@ -9,7 +9,6 @@ var searchData= ['shader',['Shader',['../classyage_1_1Shader.html#a34fe30eb6e6d595c1996e8ea6fb3961a',1,'yage::Shader::Shader(const std::string &vertex_path, const std::string &fragment_path)'],['../classyage_1_1Shader.html#a1a006dcb52a4fb9f1dc61df68d3676f5',1,'yage::Shader::Shader(const Shader &)=delete'],['../classyage_1_1Shader.html#adf6dc3a526921d62b55a552f38958dd2',1,'yage::Shader::Shader(Shader &&)=delete']]], ['shouldclose',['shouldClose',['../classyage_1_1Window.html#a5e3b209289bc343609d809d5b7f23cc8',1,'yage::Window']]], ['show',['show',['../classyage_1_1Window.html#a0847f40df2aafd7da1c315fa84871f34',1,'yage::Window']]], - ['space',['Space',['../classyage_1_1Space.html#a40c248478ae521bb4e0d5119002cf8e9',1,'yage::Space']]], ['spritebatch',['SpriteBatch',['../classyage_1_1SpriteBatch.html#afda50a8a2a6c9ffd1b9d962fae223f8a',1,'yage::SpriteBatch::SpriteBatch()'],['../classyage_1_1SpriteBatch.html#a30a46a7182235a739916d540781af652',1,'yage::SpriteBatch::SpriteBatch(const SpriteBatch &)=delete'],['../classyage_1_1SpriteBatch.html#a7f18a506f4188acd2219da8147dc0e1e',1,'yage::SpriteBatch::SpriteBatch(SpriteBatch &&)=delete']]], ['stbi_5fconvert_5fiphone_5fpng_5fto_5frgb',['stbi_convert_iphone_png_to_rgb',['../stb__image_8h.html#a23525ef2b882f3de426b47ecf8d9151b',1,'stb_image.h']]], ['stbi_5ffailure_5freason',['stbi_failure_reason',['../stb__image_8h.html#aa874b3ba909f3281d499894909678336',1,'stb_image.h']]], diff --git a/search/functions_13.js b/search/functions_13.js index 41ac6861..fe23a673 100644 --- a/search/functions_13.js +++ b/search/functions_13.js @@ -1,6 +1,6 @@ var searchData= [ - ['update',['update',['../classyage_1_1Camera.html#a99f0af50db990c5558fd0b7b82f3978c',1,'yage::Camera::update()'],['../classyage_1_1Engine.html#a8d888a2871d93f40b98ecf3548dd8d67',1,'yage::Engine::update()'],['../classyage_1_1Space.html#a08a283a165bf29d2eec4ffc5a7629ce2',1,'yage::Space::update()'],['../classyage_1_1System.html#ac47853cdad59ede40876849c78b279be',1,'yage::System::update()'],['../classyage_1_1Body.html#a17017d183f3f9ecdff779fd6f82c5d36',1,'yage::Body::update()'],['../classyage_1_1ParticleBody.html#a1f24ef00fd59254397d677d90936ec4c',1,'yage::ParticleBody::update()']]], + ['update',['update',['../classyage_1_1Camera.html#a99f0af50db990c5558fd0b7b82f3978c',1,'yage::Camera::update()'],['../classyage_1_1BaseSystem.html#ad483b78065fb91550b15f845ccabba69',1,'yage::BaseSystem::update()'],['../classyage_1_1Body.html#a17017d183f3f9ecdff779fd6f82c5d36',1,'yage::Body::update()'],['../classyage_1_1ParticleBody.html#a1f24ef00fd59254397d677d90936ec4c',1,'yage::ParticleBody::update()']]], ['use',['use',['../classyage_1_1Shader.html#a8cd66c177f148ac0b619766188696e6c',1,'yage::Shader']]], ['uv',['UV',['../structyage_1_1UV.html#ae236139f3a5f6024aac1e21bd93b7bde',1,'yage::UV::UV()=default'],['../structyage_1_1UV.html#ac918524789292937aae5803df3c2673f',1,'yage::UV::UV(float u_, float v_)']]] ]; diff --git a/search/functions_19.js b/search/functions_19.js index ed912c35..531f9852 100644 --- a/search/functions_19.js +++ b/search/functions_19.js @@ -2,7 +2,6 @@ var searchData= [ ['_7eactive',['~Active',['../classyage_1_1Active.html#ab69d08cf4804b59ac9db283015e749f2',1,'yage::Active']]], ['_7ecollisionbody',['~CollisionBody',['../classyage_1_1CollisionBody.html#a758b2f867f276f4c7e02ebda2cd04c8b',1,'yage::CollisionBody']]], - ['_7eengine',['~Engine',['../classyage_1_1Engine.html#a53cb4a81be4fc89f4d44057b75fbbcd6',1,'yage::Engine']]], ['_7elogmessage',['~LogMessage',['../classyage_1_1LogMessage.html#af82ed7ceef5cfdac54ad2e176deb9fca',1,'yage::LogMessage']]], ['_7enoncopyable',['~NonCopyable',['../classyage_1_1NonCopyable.html#a06190acb5123fdfc38675191ae547ba8',1,'yage::NonCopyable']]], ['_7eshader',['~Shader',['../classyage_1_1Shader.html#a9307c4f3cfaf5e584b70601294e09bdd',1,'yage::Shader']]], diff --git a/search/functions_2.js b/search/functions_2.js index 4f46b06a..7dd84785 100644 --- a/search/functions_2.js +++ b/search/functions_2.js @@ -9,5 +9,5 @@ var searchData= ['colour',['Colour',['../structyage_1_1Colour.html#a585165d5109c81b6b2de6f1116406abd',1,'yage::Colour::Colour()'],['../structyage_1_1Colour.html#a8118ad802db7e61df770f7d3b5b88aaa',1,'yage::Colour::Colour(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_)']]], ['colsize',['colSize',['../classyage_1_1Matrix.html#a2148cd52008892765ad90250c68afba1',1,'yage::Matrix']]], ['create',['create',['../classyage_1_1Window.html#afdf3e2826526abc23a4e206c9a8a8745',1,'yage::Window::create()'],['../classyage_1_1Active.html#aa2ed414bbe94fdd51c8aeb7ada73a064',1,'yage::Active::create()']]], - ['createentity',['createEntity',['../classyage_1_1EntityManager.html#a646cf1110abdc0a4398c994ead5f537d',1,'yage::EntityManager::createEntity()'],['../classyage_1_1Space.html#a41bc332ffb3042c0872ede8c53ff1fa4',1,'yage::Space::createEntity()']]] + ['create_5fentity',['create_entity',['../classyage_1_1EntityManager.html#a5f804a6e96010891615f2a25c579d09a',1,'yage::EntityManager']]] ]; diff --git a/search/functions_3.js b/search/functions_3.js index 3288b53b..21779c60 100644 --- a/search/functions_3.js +++ b/search/functions_3.js @@ -1,6 +1,6 @@ var searchData= [ - ['deleteentity',['deleteEntity',['../classyage_1_1EntityManager.html#a246e10663f55a9f4817cbde23a7a36c9',1,'yage::EntityManager']]], + ['delete_5fentity',['delete_entity',['../classyage_1_1EntityManager.html#a1a73fc2ccf0851d8f43a951db889cba9',1,'yage::EntityManager']]], ['dot',['dot',['../namespaceyage_1_1matrix.html#ac4d2f55a5c3369ec42001776a582c30a',1,'yage::matrix']]], ['draw',['draw',['../classyage_1_1SpriteBatch.html#acf88f98ccc7ce8effd2acfded27b6af0',1,'yage::SpriteBatch']]] ]; diff --git a/search/functions_4.js b/search/functions_4.js index 9f1bf5c4..58bfa89f 100644 --- a/search/functions_4.js +++ b/search/functions_4.js @@ -1,5 +1,4 @@ var searchData= [ - ['end',['end',['../classyage_1_1Matrix.html#a20ea5fe16d27ef15f775b5497cadc851',1,'yage::Matrix::end()'],['../classyage_1_1SpriteBatch.html#af8b705cdad7ceefa902f3be620ac8632',1,'yage::SpriteBatch::end()']]], - ['entitymanager',['EntityManager',['../classyage_1_1EntityManager.html#a255fa9aff3e6b208eea0c38d8caf08f8',1,'yage::EntityManager::EntityManager()=default'],['../classyage_1_1EntityManager.html#a0099fe0038967007891d2b7575090915',1,'yage::EntityManager::EntityManager(Space *space)'],['../classyage_1_1EntityManager.html#af1644095d96e43ac000375ba7f7ee021',1,'yage::EntityManager::EntityManager(Space *space, std::size_t n)']]] + ['end',['end',['../classyage_1_1Matrix.html#a20ea5fe16d27ef15f775b5497cadc851',1,'yage::Matrix::end()'],['../classyage_1_1SpriteBatch.html#af8b705cdad7ceefa902f3be620ac8632',1,'yage::SpriteBatch::end()']]] ]; diff --git a/search/functions_6.js b/search/functions_6.js index 8fc6fbfb..c20c77f2 100644 --- a/search/functions_6.js +++ b/search/functions_6.js @@ -1,6 +1,7 @@ var searchData= [ ['getcol',['getCol',['../classyage_1_1Matrix.html#a74475218328d6ef69701a6e261df925b',1,'yage::Matrix']]], + ['getgroup',['getGroup',['../classyage_1_1BaseComponent.html#a52011652fe97bf50b4a43936f4846ccc',1,'yage::BaseComponent']]], ['getrow',['getRow',['../classyage_1_1Matrix.html#a960273d1ac46a8edb71ceee08ee639b8',1,'yage::Matrix']]], ['gettexture',['getTexture',['../classyage_1_1ResourceManager.html#aec533f266d9b432050faed301f4191dc',1,'yage::ResourceManager::getTexture()'],['../classyage_1_1TextureCache.html#ad4929640230f9a74fcd634416fe0974f',1,'yage::TextureCache::getTexture()']]], ['glfwerrorcallback',['glfwErrorCallback',['../namespaceyage.html#ae53246342d5b0371f300336cbc6595a3',1,'yage']]], diff --git a/search/functions_8.js b/search/functions_8.js index 7c302fdb..24bc7d06 100644 --- a/search/functions_8.js +++ b/search/functions_8.js @@ -1,6 +1,7 @@ var searchData= [ - ['init',['init',['../classyage_1_1Engine.html#a41073d8b8117e567357fe46fed01bbe4',1,'yage::Engine::init()'],['../classyage_1_1System.html#ad697e043fcf7dbcf77821f49073f5af9',1,'yage::System::init()'],['../namespaceyage.html#a4fc8b4d2a19d4c7f7f1bd42a788827ce',1,'yage::init()']]], + ['init',['init',['../namespaceyage.html#a4fc8b4d2a19d4c7f7f1bd42a788827ce',1,'yage']]], ['inside',['inside',['../classyage_1_1Collider.html#a4a8ad9e664a0015e023a70d196302fe9',1,'yage::Collider::inside()'],['../classyage_1_1RectangleCollider.html#ac8d8e6bdb12c21be12f7d398242147c4',1,'yage::RectangleCollider::inside()']]], - ['instance',['instance',['../classyage_1_1Logger.html#ad165738c5b738d80a14b0ee1319cae2e',1,'yage::Logger::instance()'],['../classyage_1_1Engine.html#a7e4303fa3bd951ee64e166d6e0fb7b33',1,'yage::Engine::instance()']]] + ['instance',['instance',['../classyage_1_1Logger.html#ad165738c5b738d80a14b0ee1319cae2e',1,'yage::Logger']]], + ['is_5fvalid',['is_valid',['../classyage_1_1EntityManager.html#a7e89a1d61ff4cd047b41eb363839369f',1,'yage::EntityManager']]] ]; diff --git a/search/functions_9.js b/search/functions_9.js index 8a7ecee3..753df790 100644 --- a/search/functions_9.js +++ b/search/functions_9.js @@ -1,4 +1,4 @@ var searchData= [ - ['keypressed',['keyPressed',['../classyage_1_1Window.html#ae95d8670801c04af43da9e4fcc0e1006',1,'yage::Window']]] + ['keypressed',['keyPressed',['../classyage_1_1Window.html#a946b9e9e49af8673aca35f22f620e49e',1,'yage::Window']]] ]; diff --git a/search/functions_b.js b/search/functions_b.js index 23b94226..b0c42d01 100644 --- a/search/functions_b.js +++ b/search/functions_b.js @@ -1,6 +1,5 @@ var searchData= [ - ['mainloop',['mainLoop',['../classyage_1_1Engine.html#a245478397be4ca0d9ac6af84c1753e42',1,'yage::Engine']]], ['makeconsolesink',['makeConsoleSink',['../namespaceyage.html#ab54350a8dbf59338c99ab4f43cfa2858',1,'yage']]], ['makefilesink',['makeFileSink',['../namespaceyage.html#ad537beeea51c8314e407fadd24affc34',1,'yage::makeFileSink(const std::string &filename)'],['../namespaceyage.html#a6b288197f6a97f197dda60e5b54f1841',1,'yage::makeFileSink(std::string &&filename)']]], ['matrix',['Matrix',['../classyage_1_1Matrix.html#a73b7d1f94f4f72a2294b71b3a35794ad',1,'yage::Matrix::Matrix()'],['../classyage_1_1Matrix.html#a191b02ff353d04f18779d4c84e20927b',1,'yage::Matrix::Matrix(const std::vector< Type > &data)']]], diff --git a/search/related_1.js b/search/related_1.js index af467057..28575e11 100644 --- a/search/related_1.js +++ b/search/related_1.js @@ -1,4 +1,4 @@ var searchData= [ - ['entitymanager',['EntityManager',['../classyage_1_1Component.html#a6f579cda6059d102e9074e11a27e0282',1,'yage::Component::EntityManager()'],['../classyage_1_1ComponentGroup.html#a6f579cda6059d102e9074e11a27e0282',1,'yage::ComponentGroup::EntityManager()']]] + ['entitymanager',['EntityManager',['../classyage_1_1BaseComponent.html#a6f579cda6059d102e9074e11a27e0282',1,'yage::BaseComponent']]] ]; diff --git a/search/typedefs_0.js b/search/typedefs_0.js index d66f0d8b..7a3dbe42 100644 --- a/search/typedefs_0.js +++ b/search/typedefs_0.js @@ -1,4 +1,5 @@ var searchData= [ - ['callback',['Callback',['../classyage_1_1Active.html#a4b82fec6f02c00d186b1b840ce8f11dc',1,'yage::Active']]] + ['callback',['Callback',['../classyage_1_1Active.html#a4b82fec6f02c00d186b1b840ce8f11dc',1,'yage::Active']]], + ['componentmask',['ComponentMask',['../namespaceyage.html#a868aca3b92f2d669736ab696d2dc2847',1,'yage']]] ]; diff --git a/search/typedefs_2.js b/search/typedefs_2.js index 0c9f53bd..05bbe06e 100644 --- a/search/typedefs_2.js +++ b/search/typedefs_2.js @@ -1,4 +1,4 @@ var searchData= [ - ['group',['Group',['../classyage_1_1BaseComponent.html#a55b026d7deb37888f67636ff22fc32c8',1,'yage::BaseComponent']]] + ['groupid',['GroupId',['../namespaceyage.html#ab24c66406a581b3a0a5ef1b06cd21100',1,'yage']]] ]; diff --git a/search/variables_0.js b/search/variables_0.js index 94fe46c0..ade5f145 100644 --- a/search/variables_0.js +++ b/search/variables_0.js @@ -1,5 +1,6 @@ var searchData= [ ['a',['a',['../structyage_1_1Colour.html#a5aef37a5ac37e44dc32f5f9b1ebee10c',1,'yage::Colour']]], - ['acceleration_5f',['acceleration_',['../classyage_1_1Body.html#a36c0a4485bf9a704901d88c6cf212a5f',1,'yage::Body']]] + ['acceleration_5f',['acceleration_',['../classyage_1_1Body.html#a36c0a4485bf9a704901d88c6cf212a5f',1,'yage::Body']]], + ['active_5fmask_5f',['active_mask_',['../classyage_1_1System.html#ab3278915c6f1c4140eed6b39a034c5a6',1,'yage::System']]] ]; diff --git a/search/variables_2.js b/search/variables_2.js index fb9545ac..254e8ae7 100644 --- a/search/variables_2.js +++ b/search/variables_2.js @@ -1,4 +1,7 @@ var searchData= [ - ['colour',['colour',['../structyage_1_1Vertex.html#a142db28be39f418a06fa43f75d386182',1,'yage::Vertex']]] + ['colour',['colour',['../structyage_1_1Vertex.html#a142db28be39f418a06fa43f75d386182',1,'yage::Vertex']]], + ['component_5fgroup_5f',['component_group_',['../classyage_1_1EntityManager.html#ae9c24dfd7dfc041454b6678dbddc55e2',1,'yage::EntityManager']]], + ['component_5fmasks_5f',['component_masks_',['../classyage_1_1EntityManager.html#a579c5e72ace05025af0b5beb24f6766b',1,'yage::EntityManager']]], + ['components_5f',['components_',['../classyage_1_1ComponentGroup.html#abed4de09aa22a48680c52824029d7485',1,'yage::ComponentGroup']]] ]; diff --git a/search/variables_3.js b/search/variables_3.js index 607e1568..59dca254 100644 --- a/search/variables_3.js +++ b/search/variables_3.js @@ -1,5 +1,6 @@ var searchData= [ ['data_5f',['data_',['../classyage_1_1Matrix.html#a0ab11922319366f6e74f6e9e7d7abeed',1,'yage::Matrix']]], + ['deleted_5f',['deleted_',['../classyage_1_1EntityManager.html#aa895f8d9e3e741fba7b9b17abd9d3675',1,'yage::EntityManager']]], ['depth',['depth',['../structyage_1_1details_1_1Glyph.html#ae5398583bd0b4c1d6b334bf3902903d9',1,'yage::details::Glyph']]] ]; diff --git a/search/variables_6.js b/search/variables_6.js index 30691067..a2548088 100644 --- a/search/variables_6.js +++ b/search/variables_6.js @@ -4,5 +4,5 @@ var searchData= ['gl_5fcube_5fbuffer',['gl_cube_buffer',['../cube_8h.html#a281edacbb5e3df9fd85b17e888ba07c5',1,'cube.h']]], ['gravity',['GRAVITY',['../classyage_1_1Body.html#a4f61913cf00244a6160e09cda846f766',1,'yage::Body']]], ['gravity_5f',['gravity_',['../classyage_1_1Body.html#a454a7c59d07c94afb0a35c3d53ec2191',1,'yage::Body']]], - ['group_5fid_5fcounter_5f',['group_id_counter_',['../classyage_1_1BaseComponent.html#a529f6d4864bac810a9f5419bb0fccd92',1,'yage::BaseComponent']]] + ['group_5fid_5fcounter_5f',['group_id_counter_',['../classyage_1_1BaseComponent.html#ac864b53e6f3d6ecce6ebe3cfac40daf4',1,'yage::BaseComponent']]] ]; diff --git a/shader_8cpp.html b/shader_8cpp.html index 7c4f2969..d313f35f 100644 --- a/shader_8cpp.html +++ b/shader_8cpp.html @@ -117,7 +117,7 @@ Namespaces diff --git a/shader_8h.html b/shader_8h.html index f3b461b0..e4306e0f 100644 --- a/shader_8h.html +++ b/shader_8h.html @@ -122,7 +122,7 @@ Namespaces diff --git a/shader_8h_source.html b/shader_8h_source.html index 2f42ee73..2e282919 100644 --- a/shader_8h_source.html +++ b/shader_8h_source.html @@ -135,7 +135,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/space_8cpp.html b/space_8cpp.html deleted file mode 100644 index 9bf94fda..00000000 --- a/space_8cpp.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - -yage/entity/space.cpp File Reference - - - - - - - - - - -
    -
    -

    Namespaces

    - - - - - - -
    -
    Yet Another Game Engine
    -
    - - - - - - - -
    - All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
    - - -
    - -
    - - - -
    -
    -Namespaces
    -
    -
    space.cpp File Reference
    -
    -
    - -


    -

    -*- c++ -*- -More...

    -
    #include "space.h"
    -
    - - - - -

    -Namespaces

     yage
     Project namespace.
     
    -

    Detailed Description

    -

    -

    -*- c++ -*-

    -

    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.

    -
    - - - - diff --git a/space_8h.html b/space_8h.html deleted file mode 100644 index 79bca99e..00000000 --- a/space_8h.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - -yage/entity/space.h File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    Yet Another Game Engine
    -
    -
    - - - - - - -
    - All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
    - - -
    - -
    - - -
    -
    -
    -Classes | -Namespaces
    -
    -
    space.h File Reference
    -
    -
    - -


    -

    -*- c++ -*- -More...

    -
    #include <memory>
    -#include <vector>
    -#include "entity.h"
    -#include "system.h"
    -
    -

    Go to the source code of this file.

    - - - - - - - -

    -Classes

    struct  Movement
     
    class  yage::Space
     Space that keeps track of all the entities, componenets and runs the systems on the data to update them. More...
     
    - - - - -

    -Namespaces

     yage
     Project namespace.
     
    -

    Detailed Description

    -

    -

    -*- c++ -*-

    -

    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.

    -
    - - - - diff --git a/space_8h_source.html b/space_8h_source.html deleted file mode 100644 index 6b59cf90..00000000 --- a/space_8h_source.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - -yage/entity/space.h Source File - - - - - - - - - - -
    -
    - - - - - - - -
    -
    Yet Another Game Engine
    -
    -
    - - - - - - -
    - All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
    - - -
    - -
    - - -
    -
    -
    -
    space.h
    -
    -
    -Go to the documentation of this file.
    1 
    -
    10 #pragma once
    -
    11 
    -
    12 #include <memory>
    -
    13 #include <vector>
    -
    14 
    -
    15 #include "entity.h"
    -
    16 #include "system.h"
    -
    17 
    -
    18 struct Movement {
    -
    19 };
    -
    20 
    -
    21 namespace yage
    -
    22 {
    -
    23 
    -
    24 class System;
    -
    25 
    -
    34 class Space
    -
    35 {
    -
    36 public:
    -
    40  Space();
    -
    41 
    - -
    49 
    -
    53  void update();
    -
    54 
    -
    55 private:
    -
    62  std::vector<std::unique_ptr<System>> systems_;
    -
    63 
    -
    68  EntityManager em_;
    -
    69 
    -
    73  // ComponentManager cm_;
    -
    74 };
    -
    75 
    -
    76 } // namespace yage
    -
    -*- c++ -*-
    -
    Manages entities in a space.
    Definition: entity.h:25
    -
    Space()
    Default instance for a space.
    Definition: space.cpp:15
    -
    unsigned int Entity
    Definition: entity.h:19
    -
    -*- c++ -*-
    -
    void update()
    Update all the systems.
    Definition: space.cpp:22
    -
    Entity createEntity()
    Create an entity that will belong to this space, and return the handle to the user.
    Definition: space.cpp:17
    -
    Space that keeps track of all the entities, componenets and runs the systems on the data to update th...
    Definition: space.h:34
    -
    Definition: space.h:18
    -
    - - - - diff --git a/spritebatch_8cpp.html b/spritebatch_8cpp.html index 1048074e..17d09b7f 100644 --- a/spritebatch_8cpp.html +++ b/spritebatch_8cpp.html @@ -99,7 +99,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    #include "spritebatch.h"
    #include "../core/logger.h"
    #include <algorithm>
    -#include <iostream>
    #include <stdexcept>
    #include <GLFW/glfw3.h>
    @@ -117,7 +116,7 @@ Namespaces diff --git a/spritebatch_8h.html b/spritebatch_8h.html index 2e5efe8b..c73cba09 100644 --- a/spritebatch_8h.html +++ b/spritebatch_8h.html @@ -130,7 +130,7 @@ Namespaces diff --git a/spritebatch_8h_source.html b/spritebatch_8h_source.html index c2c1a9b1..0a30c7d5 100644 --- a/spritebatch_8h_source.html +++ b/spritebatch_8h_source.html @@ -174,16 +174,16 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    92 };
    93 
    94 } // namespace yage
    -
    yage::SpriteBatch::draw
    void draw(const glm::vec4 &destination_rect, const glm::vec4 &uv_rect, GLuint texture, const Colour &colour, float depth)
    Definition: spritebatch.cpp:79
    +
    yage::SpriteBatch::draw
    void draw(const glm::vec4 &destination_rect, const glm::vec4 &uv_rect, GLuint texture, const Colour &colour, float depth)
    Definition: spritebatch.cpp:76
    yage::details::RenderBatch::texture
    GLuint texture
    Definition: spritebatch.h:28
    -
    yage::SpriteBatch::end
    void end()
    Definition: spritebatch.cpp:73
    +
    yage::SpriteBatch::end
    void end()
    Definition: spritebatch.cpp:70
    yage::Vertex
    Definition: vertex.h:49
    yage::details::Glyph::Glyph
    Glyph(GLuint texture_i, float depth_i, const Vertex &top_left_i, const Vertex &top_right_i, const Vertex &bottom_right_i, const Vertex &bottom_left_i)
    Definition: spritebatch.h:46
    yage::SpriteBatch
    Definition: spritebatch.h:58
    yage::details::Glyph::texture
    GLuint texture
    Definition: spritebatch.h:39
    -
    yage::SpriteBatch::begin
    void begin()
    Definition: spritebatch.cpp:66
    +
    yage::SpriteBatch::begin
    void begin()
    Definition: spritebatch.cpp:63
    yage::details::Glyph::bottom_left
    Vertex bottom_left
    Definition: spritebatch.h:44
    -
    yage::SpriteBatch::render
    void render()
    Definition: spritebatch.cpp:109
    +
    yage::SpriteBatch::render
    void render()
    Definition: spritebatch.cpp:106
    yage::details::Glyph::bottom_right
    Vertex bottom_right
    Definition: spritebatch.h:43
    yage::SpriteBatch::operator=
    SpriteBatch & operator=(const SpriteBatch &)=delete
    yage::details::Glyph::top_left
    Vertex top_left
    Definition: spritebatch.h:41
    @@ -191,17 +191,17 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    yage::details::RenderBatch::offset
    GLint offset
    Definition: spritebatch.h:26
    yage::SpriteBatch::NUM_VERTICES
    static const int NUM_VERTICES
    Definition: spritebatch.h:61
    yage::details::RenderBatch
    Definition: spritebatch.h:25
    -
    yage::SpriteBatch::SpriteBatch
    SpriteBatch()
    Definition: spritebatch.cpp:26
    +
    yage::SpriteBatch::SpriteBatch
    SpriteBatch()
    Definition: spritebatch.cpp:23
    yage::details::Glyph::depth
    float depth
    Definition: spritebatch.h:40
    yage::Colour
    Definition: vertex.h:26
    yage::details::Glyph::top_right
    Vertex top_right
    Definition: spritebatch.h:42
    yage::details::Glyph
    Glyph with information of the texture.
    Definition: spritebatch.h:38
    yage::details::RenderBatch::num_vertices
    GLsizei num_vertices
    Definition: spritebatch.h:27
    -
    yage::SpriteBatch::~SpriteBatch
    ~SpriteBatch()
    Definition: spritebatch.cpp:56
    +
    yage::SpriteBatch::~SpriteBatch
    ~SpriteBatch()
    Definition: spritebatch.cpp:53
    diff --git a/spritebatch_8md.html b/spritebatch_8md.html index ba5b1bf8..de0673de 100644 --- a/spritebatch_8md.html +++ b/spritebatch_8md.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/spritebatch_guide.html b/spritebatch_guide.html index 63b5dbb7..eb1be813 100644 --- a/spritebatch_guide.html +++ b/spritebatch_guide.html @@ -83,7 +83,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    diff --git a/stb__image_8cpp.html b/stb__image_8cpp.html index 8669ee87..b3a5044f 100644 --- a/stb__image_8cpp.html +++ b/stb__image_8cpp.html @@ -124,7 +124,7 @@ Macros diff --git a/stb__image_8h.html b/stb__image_8h.html index 82b760e8..bfd2347b 100644 --- a/stb__image_8h.html +++ b/stb__image_8h.html @@ -1462,7 +1462,7 @@ Functions diff --git a/stb__image_8h_source.html b/stb__image_8h_source.html index cd379992..4a846788 100644 --- a/stb__image_8h_source.html +++ b/stb__image_8h_source.html @@ -8287,7 +8287,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/structMovement.html b/structMovement.html deleted file mode 100644 index dd83a913..00000000 --- a/structMovement.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - -Movement Struct Reference - - - - - - - - - - -
    -
    -
    - - - - - - -
    -
    Yet Another Game Engine
    -
    - - - - - - - -
    - All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
    - - -
    - -
    - - -
    -
    -
    Movement Struct Reference
    -
    -
    - -

    #include <space.h>

    -
    The documentation for this struct was generated from the following file: -
    - - - - diff --git a/structstbi__io__callbacks-members.html b/structstbi__io__callbacks-members.html index 106ec794..ae611978 100644 --- a/structstbi__io__callbacks-members.html +++ b/structstbi__io__callbacks-members.html @@ -97,7 +97,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/structstbi__io__callbacks.html b/structstbi__io__callbacks.html index 6e0c49e8..352bfd4f 100644 --- a/structstbi__io__callbacks.html +++ b/structstbi__io__callbacks.html @@ -146,7 +146,7 @@ Public Attributes diff --git a/structyage_1_1Colour-members.html b/structyage_1_1Colour-members.html index 15e61e80..a28d6a56 100644 --- a/structyage_1_1Colour-members.html +++ b/structyage_1_1Colour-members.html @@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/structyage_1_1Colour.html b/structyage_1_1Colour.html index 5cd1afdc..a1c850d5 100644 --- a/structyage_1_1Colour.html +++ b/structyage_1_1Colour.html @@ -242,7 +242,7 @@ Public Attributes diff --git a/structyage_1_1LogMessage_1_1Meta-members.html b/structyage_1_1LogMessage_1_1Meta-members.html index e793871a..70e56822 100644 --- a/structyage_1_1LogMessage_1_1Meta-members.html +++ b/structyage_1_1LogMessage_1_1Meta-members.html @@ -101,7 +101,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/structyage_1_1LogMessage_1_1Meta.html b/structyage_1_1LogMessage_1_1Meta.html index 55a6a900..dd4d71d9 100644 --- a/structyage_1_1LogMessage_1_1Meta.html +++ b/structyage_1_1LogMessage_1_1Meta.html @@ -150,7 +150,7 @@ Public Attributes diff --git a/structyage_1_1Position-members.html b/structyage_1_1Position-members.html index da50e95a..3fdab783 100644 --- a/structyage_1_1Position-members.html +++ b/structyage_1_1Position-members.html @@ -102,7 +102,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/structyage_1_1Position.html b/structyage_1_1Position.html index 0d93ca78..18dc5415 100644 --- a/structyage_1_1Position.html +++ b/structyage_1_1Position.html @@ -202,7 +202,7 @@ Public Attributes diff --git a/structyage_1_1Texture-members.html b/structyage_1_1Texture-members.html index a6bcacae..05d2d985 100644 --- a/structyage_1_1Texture-members.html +++ b/structyage_1_1Texture-members.html @@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/structyage_1_1Texture.html b/structyage_1_1Texture.html index dd3c8aa5..7b8e4cfb 100644 --- a/structyage_1_1Texture.html +++ b/structyage_1_1Texture.html @@ -262,7 +262,7 @@ Public Attributes diff --git a/structyage_1_1UV-members.html b/structyage_1_1UV-members.html index a90b27e2..8da7d091 100644 --- a/structyage_1_1UV-members.html +++ b/structyage_1_1UV-members.html @@ -102,7 +102,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/structyage_1_1UV.html b/structyage_1_1UV.html index 6aab78ff..c69b52f3 100644 --- a/structyage_1_1UV.html +++ b/structyage_1_1UV.html @@ -202,7 +202,7 @@ Public Attributes diff --git a/structyage_1_1Vertex-members.html b/structyage_1_1Vertex-members.html index 524efb2f..ae543ff4 100644 --- a/structyage_1_1Vertex-members.html +++ b/structyage_1_1Vertex-members.html @@ -106,7 +106,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/structyage_1_1Vertex.html b/structyage_1_1Vertex.html index 549f3547..4a12ed02 100644 --- a/structyage_1_1Vertex.html +++ b/structyage_1_1Vertex.html @@ -343,7 +343,7 @@ Public Attributes diff --git a/structyage_1_1details_1_1Glyph-members.html b/structyage_1_1details_1_1Glyph-members.html index ddac4891..c8613352 100644 --- a/structyage_1_1details_1_1Glyph-members.html +++ b/structyage_1_1details_1_1Glyph-members.html @@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/structyage_1_1details_1_1Glyph.html b/structyage_1_1details_1_1Glyph.html index cd82e99c..6182053a 100644 --- a/structyage_1_1details_1_1Glyph.html +++ b/structyage_1_1details_1_1Glyph.html @@ -262,7 +262,7 @@ Public Attributes diff --git a/structyage_1_1details_1_1RenderBatch-members.html b/structyage_1_1details_1_1RenderBatch-members.html index 8ad8077b..a5a2fd01 100644 --- a/structyage_1_1details_1_1RenderBatch-members.html +++ b/structyage_1_1details_1_1RenderBatch-members.html @@ -102,7 +102,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/structyage_1_1details_1_1RenderBatch.html b/structyage_1_1details_1_1RenderBatch.html index f4179f3f..314d259a 100644 --- a/structyage_1_1details_1_1RenderBatch.html +++ b/structyage_1_1details_1_1RenderBatch.html @@ -197,7 +197,7 @@ Public Attributes diff --git a/syncqueue_8h.html b/syncqueue_8h.html index a7ab444a..8205aa48 100644 --- a/syncqueue_8h.html +++ b/syncqueue_8h.html @@ -122,7 +122,7 @@ Namespaces diff --git a/syncqueue_8h_source.html b/syncqueue_8h_source.html index 4c243486..45953bf3 100644 --- a/syncqueue_8h_source.html +++ b/syncqueue_8h_source.html @@ -178,7 +178,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/system_8h.html b/system_8h.html index e21db086..db8b3092 100644 --- a/system_8h.html +++ b/system_8h.html @@ -93,18 +93,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    system.h File Reference
    - -


    -

    -*- c++ -*- -More...

    -
    #include <cstddef>
    -#include "../util/noncopyable.h"
    +
    #include "entity.h"

    Go to the source code of this file.

    - + + +

    Classes

    class  yage::System
    class  yage::BaseSystem
     
    class  yage::System< T >
     

    @@ -113,15 +110,10 @@ Namespaces

     Project namespace.
     
    -

    Detailed Description

    -

    -

    -*- c++ -*-

    -

    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.

    -
    +
    diff --git a/system_8h_source.html b/system_8h_source.html index 0a0aa621..2a28d511 100644 --- a/system_8h_source.html +++ b/system_8h_source.html @@ -90,32 +90,38 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    system.h
    -Go to the documentation of this file.
    1 
    -
    10 #pragma once
    -
    11 
    -
    12 #include <cstddef>
    +Go to the documentation of this file.
    1 #pragma once
    +
    2 
    +
    3 #include "entity.h"
    +
    4 
    +
    5 namespace yage
    +
    6 {
    +
    7 
    +
    8 class BaseSystem
    +
    9 {
    +
    10 public:
    +
    11  virtual void update(double dt, EntityManager &em) = 0;
    +
    12 };
    13 
    -
    14 #include "../util/noncopyable.h"
    -
    15 
    -
    16 namespace yage
    -
    17 {
    -
    18 
    -
    19 class System : public NonCopyable
    -
    20 {
    -
    21 public:
    -
    22  virtual void init() = 0;
    -
    23  virtual void update() = 0;
    -
    24 };
    -
    25 
    -
    26 } // namespace yage
    -
    Definition: system.h:19
    -
    Definition: noncopyable.h:15
    -
    virtual void init()=0
    -
    virtual void update()=0
    +
    14 template <typename T>
    +
    15 class System : public BaseSystem
    +
    16 {
    +
    17 protected:
    + +
    19 };
    +
    20 
    +
    21 } // namespace yage
    + +
    Definition: system.h:15
    +
    Has to keep track of all the different entities and their current state.
    Definition: entity.h:21
    +
    virtual void update(double dt, EntityManager &em)=0
    +
    Definition: system.h:8
    +
    ComponentMask active_mask_
    Definition: system.h:18
    +
    std::bitset< 64 > ComponentMask
    The component mask represents all the components that the entity is currently attached to...
    Definition: component.h:14
    diff --git a/texture_8h.html b/texture_8h.html index 6fba2c53..fbee594c 100644 --- a/texture_8h.html +++ b/texture_8h.html @@ -120,7 +120,7 @@ Namespaces
    diff --git a/texture_8h_source.html b/texture_8h_source.html index 20650440..385d4838 100644 --- a/texture_8h_source.html +++ b/texture_8h_source.html @@ -125,7 +125,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/texturecache_8cpp.html b/texturecache_8cpp.html index 822486e5..146b0d26 100644 --- a/texturecache_8cpp.html +++ b/texturecache_8cpp.html @@ -114,7 +114,7 @@ Namespaces diff --git a/texturecache_8h.html b/texturecache_8h.html index f006b34b..cd1204ea 100644 --- a/texturecache_8h.html +++ b/texturecache_8h.html @@ -121,7 +121,7 @@ Namespaces diff --git a/texturecache_8h_source.html b/texturecache_8h_source.html index 0489b0a8..01b91875 100644 --- a/texturecache_8h_source.html +++ b/texturecache_8h_source.html @@ -119,7 +119,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/todo.html b/todo.html index 4983fb40..1b63348b 100644 --- a/todo.html +++ b/todo.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/todolist_8md.html b/todolist_8md.html index f75ab393..05aa5fca 100644 --- a/todolist_8md.html +++ b/todolist_8md.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/vertex_8h.html b/vertex_8h.html index 5e121f17..6d7ff391 100644 --- a/vertex_8h.html +++ b/vertex_8h.html @@ -126,7 +126,7 @@ Namespaces diff --git a/vertex_8h_source.html b/vertex_8h_source.html index a8f7b155..46624a2d 100644 --- a/vertex_8h_source.html +++ b/vertex_8h_source.html @@ -193,7 +193,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/window_8cpp.html b/window_8cpp.html index 336ebc67..bd5781f1 100644 --- a/window_8cpp.html +++ b/window_8cpp.html @@ -116,7 +116,7 @@ Namespaces diff --git a/window_8h.html b/window_8h.html index a39f9558..5ab11e0e 100644 --- a/window_8h.html +++ b/window_8h.html @@ -130,7 +130,7 @@ Enumerations diff --git a/window_8h_source.html b/window_8h_source.html index 4d80a9d9..ad4ba0e7 100644 --- a/window_8h_source.html +++ b/window_8h_source.html @@ -133,32 +133,32 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    56  bool shouldClose();
    57  void pollEvents() const;
    58 
    -
    59  bool keyPressed(key k);
    +
    59  bool keyPressed(key k) const;
    60 };
    61 
    62 } // namespace yage
    -
    yage::Window::keyPressed
    bool keyPressed(key k)
    Definition: window.cpp:111
    yage::HIDDEN
    Definition: window.h:24
    -
    yage::Window::swapBuffer
    void swapBuffer()
    swap the buffer
    Definition: window.cpp:75
    -
    yage::Window::hide
    void hide()
    hide windowProc
    Definition: window.cpp:91
    +
    yage::Window::swapBuffer
    void swapBuffer()
    swap the buffer
    Definition: window.cpp:76
    +
    yage::Window::hide
    void hide()
    hide windowProc
    Definition: window.cpp:92
    yage::Window::Window
    Window()=default
    yage::Window
    Definition: window.h:30
    -
    yage::Window::shouldClose
    bool shouldClose()
    Definition: window.cpp:101
    +
    yage::Window::shouldClose
    bool shouldClose()
    Definition: window.cpp:102
    yage::FULLSCREEN
    Definition: window.h:25
    yage::WindowFlags
    WindowFlags
    Definition: window.h:22
    yage::Window::~Window
    ~Window()
    destroys the window handle
    Definition: window.cpp:38
    -
    yage::Window::show
    void show()
    show window
    Definition: window.cpp:96
    +
    yage::Window::show
    void show()
    show window
    Definition: window.cpp:97
    yage::Window::create
    void create(std::string window_name, int width, int height)
    create the window, initialize the handle and update the width and height
    Definition: window.cpp:43
    +
    yage::Window::keyPressed
    bool keyPressed(key k) const
    Definition: window.cpp:112
    yage::SHOWN
    Definition: window.h:23
    yage::key
    key
    Definition: input.h:25
    -
    yage::Window::clearBuffer
    void clearBuffer()
    clear buffer
    Definition: window.cpp:81
    -
    yage::Window::pollEvents
    void pollEvents() const
    Definition: window.cpp:106
    +
    yage::Window::clearBuffer
    void clearBuffer()
    clear buffer
    Definition: window.cpp:82
    +
    yage::Window::pollEvents
    void pollEvents() const
    Definition: window.cpp:107
    yage::Window::operator=
    Window & operator=(const Window &)=delete
    yage::BORDERLESS
    Definition: window.h:26
    diff --git a/yage_2entity_2README_8md.html b/yage_2entity_2README_8md.html index 1cfc255c..06259b73 100644 --- a/yage_2entity_2README_8md.html +++ b/yage_2entity_2README_8md.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/yage_2physics_2README_8md.html b/yage_2physics_2README_8md.html index 02111282..747419ff 100644 --- a/yage_2physics_2README_8md.html +++ b/yage_2physics_2README_8md.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/yage_8h.html b/yage_8h.html index 3bebc159..d7bf3385 100644 --- a/yage_8h.html +++ b/yage_8h.html @@ -106,7 +106,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); #include "math/matrix.h"
    #include "render/shader.h"
    #include "render/spritebatch.h"
    -#include "entity/engine.h"

    Go to the source code of this file.

    Detailed Description

    @@ -117,7 +116,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/yage_8h_source.html b/yage_8h_source.html index c10306d7..7140fd76 100644 --- a/yage_8h_source.html +++ b/yage_8h_source.html @@ -113,10 +113,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    41 
    45 #include "render/shader.h"
    46 #include "render/spritebatch.h"
    -
    47 
    -
    52 #include "entity/engine.h"
    window.h
    -*- c++ -*-
    -
    engine.h
    -*- c++ -*-
    input.h
    -*- c++ -*-
    camera.h
    -*- c++ -*-
    core.h
    -*- c++ -*-
    @@ -131,7 +128,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -- cgit