aboutsummaryrefslogtreecommitdiffstats
path: root/yage
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-09-09 08:32:39 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-09-09 08:32:39 +0100
commit6e4681a86fc1d118571dac06ffa811a988a1066a (patch)
tree14d03aa3dbd65e91f74d041ae8203b8c7d13cdf4 /yage
parent60072c1d8089ffd3294e76636198d14710be95b8 (diff)
downloadYAGE-6e4681a86fc1d118571dac06ffa811a988a1066a.tar.gz
YAGE-6e4681a86fc1d118571dac06ffa811a988a1066a.zip
Stable build
Diffstat (limited to 'yage')
-rw-r--r--yage/base/camera2d.cpp2
-rw-r--r--yage/base/glslprogram.cpp2
-rw-r--r--yage/base/imageloader.cpp6
-rw-r--r--yage/base/inputmanager.cpp2
-rw-r--r--yage/base/iomanager.cpp2
-rw-r--r--yage/base/resourcemanager.cpp2
-rw-r--r--yage/base/sprite.cpp6
-rw-r--r--yage/base/spritebatch.cpp2
-rw-r--r--yage/base/texturecache.cpp4
-rw-r--r--yage/base/window.cpp2
-rw-r--r--yage/physics/body.cpp2
-rw-r--r--yage/physics/body.h4
-rw-r--r--yage/physics/particlebody.cpp2
-rw-r--r--yage/physics/particlebody.h2
-rw-r--r--yage/physics/rectanglecollider.cpp2
-rw-r--r--yage/physics/rigidbody.cpp2
-rw-r--r--yage/yage.h34
17 files changed, 43 insertions, 35 deletions
diff --git a/yage/base/camera2d.cpp b/yage/base/camera2d.cpp
index 292f998a..e23b75fa 100644
--- a/yage/base/camera2d.cpp
+++ b/yage/base/camera2d.cpp
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/camera2d.h>
+#include "camera2d.h"
#include <GL/glew.h>
diff --git a/yage/base/glslprogram.cpp b/yage/base/glslprogram.cpp
index 11a3191e..131a1a28 100644
--- a/yage/base/glslprogram.cpp
+++ b/yage/base/glslprogram.cpp
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/glslprogram.h>
+#include <yage/base/glslprogram.h>
#include <fstream>
#include <stdexcept>
diff --git a/yage/base/imageloader.cpp b/yage/base/imageloader.cpp
index 812110d8..983c350e 100644
--- a/yage/base/imageloader.cpp
+++ b/yage/base/imageloader.cpp
@@ -6,9 +6,9 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/imageloader.h>
-#include <YAGE/iomanager.h>
-#include <YAGE/picopng.h>
+#include <yage/base/imageloader.h>
+#include <yage/base/iomanager.h>
+#include <yage/base/picopng.h>
#include <stdexcept>
diff --git a/yage/base/inputmanager.cpp b/yage/base/inputmanager.cpp
index d429abd7..15ff374b 100644
--- a/yage/base/inputmanager.cpp
+++ b/yage/base/inputmanager.cpp
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/inputmanager.h>
+#include <yage/base/inputmanager.h>
namespace yage
{
diff --git a/yage/base/iomanager.cpp b/yage/base/iomanager.cpp
index 93ab41c9..d5b950d6 100644
--- a/yage/base/iomanager.cpp
+++ b/yage/base/iomanager.cpp
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/iomanager.h>
+#include <yage/base/iomanager.h>
#include <fstream>
#include <stdexcept>
diff --git a/yage/base/resourcemanager.cpp b/yage/base/resourcemanager.cpp
index 473ea37e..f3f9aa20 100644
--- a/yage/base/resourcemanager.cpp
+++ b/yage/base/resourcemanager.cpp
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/resourcemanager.h>
+#include <yage/base/resourcemanager.h>
namespace yage
{
diff --git a/yage/base/sprite.cpp b/yage/base/sprite.cpp
index 68e08e5d..767e1000 100644
--- a/yage/base/sprite.cpp
+++ b/yage/base/sprite.cpp
@@ -6,9 +6,9 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/sprite.h>
-#include <YAGE/resourcemanager.h>
-#include <YAGE/vertex.h>
+#include <yage/base/sprite.h>
+#include <yage/base/resourcemanager.h>
+#include <yage/base/vertex.h>
#include <cstddef>
diff --git a/yage/base/spritebatch.cpp b/yage/base/spritebatch.cpp
index ac98130b..3aec8153 100644
--- a/yage/base/spritebatch.cpp
+++ b/yage/base/spritebatch.cpp
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/spritebatch.h>
+#include <yage/base/spritebatch.h>
#include <algorithm>
#include <stdexcept>
diff --git a/yage/base/texturecache.cpp b/yage/base/texturecache.cpp
index fda5fcd9..5d2950a3 100644
--- a/yage/base/texturecache.cpp
+++ b/yage/base/texturecache.cpp
@@ -6,8 +6,8 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/texturecache.h>
-#include <YAGE/imageloader.h>
+#include <yage/base/texturecache.h>
+#include <yage/base/imageloader.h>
namespace yage
{
diff --git a/yage/base/window.cpp b/yage/base/window.cpp
index 143b1d5d..a8b6fc02 100644
--- a/yage/base/window.cpp
+++ b/yage/base/window.cpp
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/window.h>
+#include <yage/base/window.h>
#include <GL/glew.h>
#include <iostream>
diff --git a/yage/physics/body.cpp b/yage/physics/body.cpp
index 8d38e70a..81d26699 100644
--- a/yage/physics/body.cpp
+++ b/yage/physics/body.cpp
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/Physics/body.h>
+#include <yage/physics/body.h>
#include <utility>
diff --git a/yage/physics/body.h b/yage/physics/body.h
index bd33a9ac..90682682 100644
--- a/yage/physics/body.h
+++ b/yage/physics/body.h
@@ -9,10 +9,11 @@
#ifndef YAGE_PHYSICS_BODY_H
#define YAGE_PHYSICS_BODY_H
-#include <YAGE/Math/matrix.h>
+#include <math/matrix.h>
namespace yage
{
+
class Body
{
public:
@@ -51,6 +52,7 @@ protected:
Body(Vector2d position = Vector2d(0, 0), double mass = 1,
Vector2d velocity = Vector2d(0, 0), bool gravity = false);
};
+
} // namespace yage
#endif
diff --git a/yage/physics/particlebody.cpp b/yage/physics/particlebody.cpp
index bdb81eac..3ccba546 100644
--- a/yage/physics/particlebody.cpp
+++ b/yage/physics/particlebody.cpp
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/Physics/particlebody.h>
+#include <yage/physics/particlebody.h>
#include <cmath>
#include <iostream>
diff --git a/yage/physics/particlebody.h b/yage/physics/particlebody.h
index a0b9bdad..18cfff0b 100644
--- a/yage/physics/particlebody.h
+++ b/yage/physics/particlebody.h
@@ -11,7 +11,7 @@
#include "body.h"
-#include <YAGE/Math/matrix.h>
+#include <yage/math/matrix.h>
namespace yage
{
diff --git a/yage/physics/rectanglecollider.cpp b/yage/physics/rectanglecollider.cpp
index 64887278..d9a1a6c1 100644
--- a/yage/physics/rectanglecollider.cpp
+++ b/yage/physics/rectanglecollider.cpp
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/Physics/rectanglecollider.h>
+#include <yage/physics/rectanglecollider.h>
namespace yage
{
diff --git a/yage/physics/rigidbody.cpp b/yage/physics/rigidbody.cpp
index dcab5f2f..efbef8d9 100644
--- a/yage/physics/rigidbody.cpp
+++ b/yage/physics/rigidbody.cpp
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#include <YAGE/Physics/rigidbody.h>
+#include <yage/physics/rigidbody.h>
namespace yage
{
diff --git a/yage/yage.h b/yage/yage.h
index 6157e6bf..286d4784 100644
--- a/yage/yage.h
+++ b/yage/yage.h
@@ -6,7 +6,7 @@
* ----------------------------------------------------------------------------
*/
-/** @file Includes all the headers in the main YAGE project.
+/** @file Includes all the headers in the main yage project.
*
* This does not include
*/
@@ -14,17 +14,23 @@
#ifndef YAGE_YAGE_H
#define YAGE_YAGE_H
-#include "camera2d.h"
-#include "glslprogram.h"
-#include "imageloader.h"
-#include "inputmanager.h"
-#include "iomanager.h"
-#include "picopng.h"
-#include "resourcemanager.h"
-#include "spritebatch.h"
-#include "texture.h"
-#include "vertex.h"
-#include "window.h"
+#include "base/camera2d.h"
+#include "base/glslprogram.h"
+#include "base/imageloader.h"
+#include "base/inputmanager.h"
+#include "base/iomanager.h"
+#include "base/picopng.h"
+#include "base/resourcemanager.h"
+#include "base/spritebatch.h"
+#include "base/texture.h"
+#include "base/vertex.h"
+#include "base/window.h"
+
+#include "physics/rectanglecollider.h"
+#include "physics/rigidbody.h"
+#include "physics/particlebody.h"
+#include "physics/body.h"
+
#include <SDL2/SDL.h>
@@ -38,7 +44,7 @@
namespace yage
{
-/** Initializes YAGE.
+/** Initializes yage.
*
* This is only there to initialize SDL2.
*
@@ -49,7 +55,7 @@ bool init()
return SDL_Init(SDL_INIT_VIDEO);
}
-/** Quit and cleanup YAGE
+/** Quit and cleanup yage
*
* SDL2 needs to clean itself up.
*/