From 87311540bde93dc6ebf0aeb8fbac122346a99821 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 2 Sep 2017 12:23:28 +0100 Subject: Fixed includes and standardized them --- include/YAGE/Math/math.h | 8 ++++---- include/YAGE/Math/matrix.h | 6 +++--- include/YAGE/Physics/body.h | 8 ++++---- include/YAGE/Physics/collider.h | 6 +++--- include/YAGE/Physics/collisionbody.h | 8 ++++---- include/YAGE/Physics/particlebody.h | 11 ++++++----- include/YAGE/Physics/physics.h | 18 +++++++++--------- include/YAGE/Physics/rectanglecollider.h | 8 ++++---- include/YAGE/Physics/rigidbody.h | 10 +++++----- include/YAGE/camera2d.h | 8 ++++---- include/YAGE/glslprogram.h | 6 +++--- include/YAGE/imageloader.h | 8 ++++---- include/YAGE/inputmanager.h | 6 +++--- include/YAGE/iomanager.h | 6 +++--- include/YAGE/picopng.h | 2 +- include/YAGE/resourcemanager.h | 10 +++++----- include/YAGE/sprite.h | 8 ++++---- include/YAGE/spritebatch.h | 8 ++++---- include/YAGE/texture.h | 6 +++--- include/YAGE/texturecache.h | 8 ++++---- include/YAGE/vertex.h | 6 +++--- include/YAGE/window.h | 6 +++--- include/YAGE/yage.h | 30 +++++++++++++++--------------- 23 files changed, 101 insertions(+), 100 deletions(-) (limited to 'include') diff --git a/include/YAGE/Math/math.h b/include/YAGE/Math/math.h index b587cf9f..b729dbe6 100644 --- a/include/YAGE/Math/math.h +++ b/include/YAGE/Math/math.h @@ -1,14 +1,14 @@ /* ---------------------------------------------------------------------------- - * math.hpp + * math.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef YAGE_MATH_HPP -#define YAGE_MATH_HPP +#ifndef YAGE_MATH_H +#define YAGE_MATH_H -#include "matrix.hpp" +#include "matrix.h" #endif diff --git a/include/YAGE/Math/matrix.h b/include/YAGE/Math/matrix.h index aa78954e..3992acfe 100644 --- a/include/YAGE/Math/matrix.h +++ b/include/YAGE/Math/matrix.h @@ -1,5 +1,5 @@ /* ---------------------------------------------------------------------------- - * matrix.hpp + * matrix.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details @@ -9,8 +9,8 @@ /** @file */ -#ifndef YAGE_MATH_MATRIX_HPP -#define YAGE_MATH_MATRIX_HPP +#ifndef YAGE_MATH_MATRIX_H +#define YAGE_MATH_MATRIX_H #include #include diff --git a/include/YAGE/Physics/body.h b/include/YAGE/Physics/body.h index c67d2b12..bd33a9ac 100644 --- a/include/YAGE/Physics/body.h +++ b/include/YAGE/Physics/body.h @@ -1,15 +1,15 @@ /* ---------------------------------------------------------------------------- - * body.hpp + * body.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef YAGE_PHYSICS_BODY_HPP -#define YAGE_PHYSICS_BODY_HPP +#ifndef YAGE_PHYSICS_BODY_H +#define YAGE_PHYSICS_BODY_H -#include "Math/matrix.hpp" +#include namespace yage { diff --git a/include/YAGE/Physics/collider.h b/include/YAGE/Physics/collider.h index 7b4ff060..2fd2ff89 100644 --- a/include/YAGE/Physics/collider.h +++ b/include/YAGE/Physics/collider.h @@ -1,13 +1,13 @@ /* ---------------------------------------------------------------------------- - * collider.hpp + * collider.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef YAGE_PHYSICS_COLLIDER_HPP -#define YAGE_PHYSICS_COLLIDER_HPP +#ifndef YAGE_PHYSICS_COLLIDER_H +#define YAGE_PHYSICS_COLLIDER_H #include diff --git a/include/YAGE/Physics/collisionbody.h b/include/YAGE/Physics/collisionbody.h index b7403e81..715c4a54 100644 --- a/include/YAGE/Physics/collisionbody.h +++ b/include/YAGE/Physics/collisionbody.h @@ -1,15 +1,15 @@ /* ---------------------------------------------------------------------------- - * collisionbody.hpp + * collisionbody.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef YAGE_COLLISION_BODY_HPP -#define YAGE_COLLISION_BODY_HPP +#ifndef YAGE_COLLISION_BODY_H +#define YAGE_COLLISION_BODY_H -#include "Physics/body.hpp" +#include "body.h" namespace yage { diff --git a/include/YAGE/Physics/particlebody.h b/include/YAGE/Physics/particlebody.h index 15f1ae5a..a0b9bdad 100644 --- a/include/YAGE/Physics/particlebody.h +++ b/include/YAGE/Physics/particlebody.h @@ -1,16 +1,17 @@ /* ---------------------------------------------------------------------------- - * particlebody.hpp + * particlebody.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef YAGE_PHYSICS_PARTICLE_BODY_HPP -#define YAGE_PHYSICS_PARTICLE_BODY_HPP +#ifndef YAGE_PHYSICS_PARTICLE_BODY_H +#define YAGE_PHYSICS_PARTICLE_BODY_H -#include "Math/matrix.hpp" -#include "Physics/body.hpp" +#include "body.h" + +#include namespace yage { diff --git a/include/YAGE/Physics/physics.h b/include/YAGE/Physics/physics.h index 8146672a..900f4b6a 100644 --- a/include/YAGE/Physics/physics.h +++ b/include/YAGE/Physics/physics.h @@ -1,19 +1,19 @@ /* ---------------------------------------------------------------------------- - * physics.hpp + * physics.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef YAGE_PHYSICS_HPP -#define YAGE_PHYSICS_HPP +#ifndef YAGE_PHYSICS_H +#define YAGE_PHYSICS_H -#include "body.hpp" -#include "collider.hpp" -#include "collisionbody.hpp" -#include "particlebody.hpp" -#include "rectanglecollider.hpp" -#include "rigidbody.hpp" +#include "body.h" +#include "collider.h" +#include "collisionbody.h" +#include "particlebody.h" +#include "rectanglecollider.h" +#include "rigidbody.h" #endif diff --git a/include/YAGE/Physics/rectanglecollider.h b/include/YAGE/Physics/rectanglecollider.h index f6f6c481..c009f665 100644 --- a/include/YAGE/Physics/rectanglecollider.h +++ b/include/YAGE/Physics/rectanglecollider.h @@ -1,15 +1,15 @@ /* ---------------------------------------------------------------------------- - * rectanglecollider.hpp + * rectanglecollider.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef YAGE_RECTANGLE_COLLIDER_HPP -#define YAGE_RECTANGLE_COLLIDER_HPP +#ifndef YAGE_RECTANGLE_COLLIDER_H +#define YAGE_RECTANGLE_COLLIDER_H -#include "Physics/collider.hpp" +#include "collider.h" #include diff --git a/include/YAGE/Physics/rigidbody.h b/include/YAGE/Physics/rigidbody.h index 48ca6761..67ccb4ca 100644 --- a/include/YAGE/Physics/rigidbody.h +++ b/include/YAGE/Physics/rigidbody.h @@ -1,17 +1,17 @@ /* ---------------------------------------------------------------------------- - * rigidbody.hpp + * rigidbody.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef YAGE_RIGID_BODY_HPP -#define YAGE_RIGID_BODY_HPP +#ifndef YAGE_RIGID_BODY_H +#define YAGE_RIGID_BODY_H -#include +#include "particlebody.h" -#include "particlebody.hpp" +#include namespace yage { diff --git a/include/YAGE/camera2d.h b/include/YAGE/camera2d.h index ecf819b6..a50544a4 100644 --- a/include/YAGE/camera2d.h +++ b/include/YAGE/camera2d.h @@ -1,15 +1,15 @@ /* ---------------------------------------------------------------------------- - * camera2d.hpp + * camera2d.h * * Copyright (c) 2017 Yann Herklotz Grave * MIT License, see LICENSE file for more details. * ---------------------------------------------------------------------------- */ -#ifndef CAMERA_2D_HPP -#define CAMERA_2D_HPP +#ifndef CAMERA_2D_H +#define CAMERA_2D_H -#include "glslprogram.hpp" +#include "glslprogram.h" #include #include diff --git a/include/YAGE/glslprogram.h b/include/YAGE/glslprogram.h index 154e2e57..fbe5ac5c 100644 --- a/include/YAGE/glslprogram.h +++ b/include/YAGE/glslprogram.h @@ -1,13 +1,13 @@ /* ---------------------------------------------------------------------------- - * glslprogram.hpp + * glslprogram.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef GLSL_PROGRAM_HPP -#define GLSL_PROGRAM_HPP +#ifndef GLSL_PROGRAM_H +#define GLSL_PROGRAM_H #include diff --git a/include/YAGE/imageloader.h b/include/YAGE/imageloader.h index 770307d1..8d5c5cd1 100644 --- a/include/YAGE/imageloader.h +++ b/include/YAGE/imageloader.h @@ -1,15 +1,15 @@ /* ---------------------------------------------------------------------------- - * imageloader.hpp + * imageloader.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef IMAGE_LOADER_HPP -#define IMAGE_LOADER_HPP +#ifndef IMAGE_LOADER_H +#define IMAGE_LOADER_H -#include "texture.hpp" +#include "texture.h" #include diff --git a/include/YAGE/inputmanager.h b/include/YAGE/inputmanager.h index 61c5ce53..84728fff 100644 --- a/include/YAGE/inputmanager.h +++ b/include/YAGE/inputmanager.h @@ -1,13 +1,13 @@ /* ---------------------------------------------------------------------------- - * inputmanager.hpp + * inputmanager.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef INPUT_MANAGER_HPP -#define INPUT_MANAGER_HPP +#ifndef INPUT_MANAGER_H +#define INPUT_MANAGER_H #include diff --git a/include/YAGE/iomanager.h b/include/YAGE/iomanager.h index 4f30e51c..95abd652 100644 --- a/include/YAGE/iomanager.h +++ b/include/YAGE/iomanager.h @@ -1,13 +1,13 @@ /* ---------------------------------------------------------------------------- - * iomanager.hpp + * iomanager.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef IO_MANAGER_HPP -#define IO_MANAGER_HPP +#ifndef IO_MANAGER_H +#define IO_MANAGER_H #include #include diff --git a/include/YAGE/picopng.h b/include/YAGE/picopng.h index c0a42c28..095bf68a 100644 --- a/include/YAGE/picopng.h +++ b/include/YAGE/picopng.h @@ -1,5 +1,5 @@ /* ---------------------------------------------------------------------------- - * picopng.hpp + * picopng.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details diff --git a/include/YAGE/resourcemanager.h b/include/YAGE/resourcemanager.h index ebd30476..3c5081c4 100644 --- a/include/YAGE/resourcemanager.h +++ b/include/YAGE/resourcemanager.h @@ -1,16 +1,16 @@ /* ---------------------------------------------------------------------------- - * resourcemanager.hpp + * resourcemanager.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef RESOURCE_MANAGER_HPP -#define RESOURCE_MANAGER_HPP +#ifndef RESOURCE_MANAGER_H +#define RESOURCE_MANAGER_H -#include "texture.hpp" -#include "texturecache.hpp" +#include "texture.h" +#include "texturecache.h" #include diff --git a/include/YAGE/sprite.h b/include/YAGE/sprite.h index 28e13437..0f5a0b8a 100644 --- a/include/YAGE/sprite.h +++ b/include/YAGE/sprite.h @@ -1,15 +1,15 @@ /* ---------------------------------------------------------------------------- - * sprite.hpp + * sprite.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef SPRITE_HPP -#define SPRITE_HPP +#ifndef SPRITE_H +#define SPRITE_H -#include "texture.hpp" +#include "texture.h" #include diff --git a/include/YAGE/spritebatch.h b/include/YAGE/spritebatch.h index add58b43..7235bd25 100644 --- a/include/YAGE/spritebatch.h +++ b/include/YAGE/spritebatch.h @@ -1,15 +1,15 @@ /* ---------------------------------------------------------------------------- - * spritebatch.hpp + * spritebatch.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef YAGE_SPRITE_BATCH_HPP -#define YAGE_SPRITE_BATCH_HPP +#ifndef YAGE_SPRITE_BATCH_H +#define YAGE_SPRITE_BATCH_H -#include "vertex.hpp" +#include "vertex.h" #include #include diff --git a/include/YAGE/texture.h b/include/YAGE/texture.h index d2cc3bdd..d1fdcbf2 100644 --- a/include/YAGE/texture.h +++ b/include/YAGE/texture.h @@ -1,13 +1,13 @@ /* ---------------------------------------------------------------------------- - * texture.hpp + * texture.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef GL_TEXTURE_HPP -#define GL_TEXTURE_HPP +#ifndef GL_TEXTURE_H +#define GL_TEXTURE_H #include diff --git a/include/YAGE/texturecache.h b/include/YAGE/texturecache.h index 1542ad79..414c9ec3 100644 --- a/include/YAGE/texturecache.h +++ b/include/YAGE/texturecache.h @@ -1,15 +1,15 @@ /* ---------------------------------------------------------------------------- - * texturecache.hpp + * texturecache.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef TEXTURE_CACHE_HPP -#define TEXTURE_CACHE_HPP +#ifndef TEXTURE_CACHE_H +#define TEXTURE_CACHE_H -#include "texture.hpp" +#include "texture.h" #include diff --git a/include/YAGE/vertex.h b/include/YAGE/vertex.h index ef379888..15b46ed9 100644 --- a/include/YAGE/vertex.h +++ b/include/YAGE/vertex.h @@ -1,13 +1,13 @@ /* ---------------------------------------------------------------------------- - * vertex.hpp + * vertex.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef VERTEX_HPP -#define VERTEX_HPP +#ifndef VERTEX_H +#define VERTEX_H #include diff --git a/include/YAGE/window.h b/include/YAGE/window.h index 51b217f8..8639e075 100644 --- a/include/YAGE/window.h +++ b/include/YAGE/window.h @@ -1,13 +1,13 @@ /* ---------------------------------------------------------------------------- - * window.hpp + * window.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ -#ifndef WINDOW_HPP -#define WINDOW_HPP +#ifndef WINDOW_H +#define WINDOW_H #include diff --git a/include/YAGE/yage.h b/include/YAGE/yage.h index 13d6d560..6157e6bf 100644 --- a/include/YAGE/yage.h +++ b/include/YAGE/yage.h @@ -1,5 +1,5 @@ /* ---------------------------------------------------------------------------- - * yage.hpp + * yage.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details @@ -11,20 +11,20 @@ * This does not include */ -#ifndef YAGE_HPP -#define YAGE_HPP - -#include "camera2d.hpp" -#include "glslprogram.hpp" -#include "imageloader.hpp" -#include "inputmanager.hpp" -#include "iomanager.hpp" -#include "picopng.hpp" -#include "resourcemanager.hpp" -#include "spritebatch.hpp" -#include "texture.hpp" -#include "vertex.hpp" -#include "window.hpp" +#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 -- cgit