From b35be0d8a0636602076c9c09a1cc2b3c92cb4042 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 27 Jul 2017 22:20:32 +0100 Subject: Added MIT License to all files --- src/body.cpp | 8 ++++++++ src/camera2d.cpp | 8 ++++++++ src/glslprogram.cpp | 8 ++++++++ src/imageloader.cpp | 8 ++++++++ src/inputmanager.cpp | 8 ++++++++ src/iomanager.cpp | 8 ++++++++ src/particlebody.cpp | 8 ++++++++ src/rectanglecollider.cpp | 8 ++++++++ src/resourcemanager.cpp | 8 ++++++++ src/rigidbody.cpp | 8 ++++++++ src/sprite.cpp | 8 ++++++++ src/spritebatch.cpp | 8 ++++++++ src/texturecache.cpp | 8 ++++++++ src/window.cpp | 8 ++++++++ 14 files changed, 112 insertions(+) (limited to 'src') diff --git a/src/body.cpp b/src/body.cpp index e942d617..524a92ee 100644 --- a/src/body.cpp +++ b/src/body.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * body.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "Physics/body.hpp" namespace yage diff --git a/src/camera2d.cpp b/src/camera2d.cpp index 81e8d971..0b60b7c6 100644 --- a/src/camera2d.cpp +++ b/src/camera2d.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * camera2d.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "camera2d.hpp" #include diff --git a/src/glslprogram.cpp b/src/glslprogram.cpp index f9795a34..acb81f56 100644 --- a/src/glslprogram.cpp +++ b/src/glslprogram.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * glslprogram.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "glslprogram.hpp" #include diff --git a/src/imageloader.cpp b/src/imageloader.cpp index cca71844..241cf588 100644 --- a/src/imageloader.cpp +++ b/src/imageloader.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * imageloader.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "imageloader.hpp" #include "iomanager.hpp" #include "picopng.hpp" diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp index 402cc420..c9c80d93 100644 --- a/src/inputmanager.cpp +++ b/src/inputmanager.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * inputmanager.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "inputmanager.hpp" namespace yage diff --git a/src/iomanager.cpp b/src/iomanager.cpp index 697273dc..bcb1dcd0 100644 --- a/src/iomanager.cpp +++ b/src/iomanager.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * iomanager.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "iomanager.hpp" #include diff --git a/src/particlebody.cpp b/src/particlebody.cpp index 748f80cd..a66489e9 100644 --- a/src/particlebody.cpp +++ b/src/particlebody.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * particlebody.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "Physics/particlebody.hpp" #include diff --git a/src/rectanglecollider.cpp b/src/rectanglecollider.cpp index 812b10d1..0f5ee302 100644 --- a/src/rectanglecollider.cpp +++ b/src/rectanglecollider.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * rectanglecollider.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "Physics/rectanglecollider.hpp" namespace yage diff --git a/src/resourcemanager.cpp b/src/resourcemanager.cpp index 4105f4e4..8341557c 100644 --- a/src/resourcemanager.cpp +++ b/src/resourcemanager.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * resourcemanager.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "resourcemanager.hpp" namespace yage diff --git a/src/rigidbody.cpp b/src/rigidbody.cpp index 62032b74..f2069c4a 100644 --- a/src/rigidbody.cpp +++ b/src/rigidbody.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * rigidbody.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "Physics/rigidbody.hpp" namespace yage diff --git a/src/sprite.cpp b/src/sprite.cpp index cd8f328d..2ba39e2e 100644 --- a/src/sprite.cpp +++ b/src/sprite.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * sprite.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "sprite.hpp" #include "resourcemanager.hpp" #include "vertex.hpp" diff --git a/src/spritebatch.cpp b/src/spritebatch.cpp index a530a0ac..4018b3e2 100644 --- a/src/spritebatch.cpp +++ b/src/spritebatch.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * spritebatch.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "spritebatch.hpp" #include diff --git a/src/texturecache.cpp b/src/texturecache.cpp index ca47217e..bc48c4e0 100644 --- a/src/texturecache.cpp +++ b/src/texturecache.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * texturecache.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "imageloader.hpp" #include "texturecache.hpp" diff --git a/src/window.cpp b/src/window.cpp index 37c3b16d..60cdb4ef 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1,3 +1,11 @@ +/* ---------------------------------------------------------------------------- + * window.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + #include "window.hpp" #include -- cgit From 31317175d72c62994b98a93e1b827633b4de9cb2 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 1 Aug 2017 23:47:35 +0100 Subject: Fixing constructors and destructors --- src/body.cpp | 3 --- src/camera2d.cpp | 3 --- src/glslprogram.cpp | 3 --- src/texturecache.cpp | 3 --- 4 files changed, 12 deletions(-) (limited to 'src') diff --git a/src/body.cpp b/src/body.cpp index 524a92ee..ad92b0ca 100644 --- a/src/body.cpp +++ b/src/body.cpp @@ -13,9 +13,6 @@ namespace yage const double Body::GRAVITY=-9.81; -Body::~Body() -{} - double Body::xPosition() const { return position_[0]; diff --git a/src/camera2d.cpp b/src/camera2d.cpp index 0b60b7c6..88b468de 100644 --- a/src/camera2d.cpp +++ b/src/camera2d.cpp @@ -19,9 +19,6 @@ Camera2D::Camera2D(int screen_width, int screen_height) : ortho_matrix_(glm::ortho(0.f, (float)screen_width, 0.f, (float)screen_height)) {} -Camera2D::~Camera2D() -{} - void Camera2D::update(GlslProgram &program) { if(matrix_needs_update_) diff --git a/src/glslprogram.cpp b/src/glslprogram.cpp index acb81f56..18fee54e 100644 --- a/src/glslprogram.cpp +++ b/src/glslprogram.cpp @@ -15,9 +15,6 @@ namespace yage { -GlslProgram::GlslProgram() -{} - GlslProgram::~GlslProgram() { // cleanup all the shaders and the program diff --git a/src/texturecache.cpp b/src/texturecache.cpp index bc48c4e0..6d10b209 100644 --- a/src/texturecache.cpp +++ b/src/texturecache.cpp @@ -15,9 +15,6 @@ namespace yage TextureCache::TextureCache() {} -TextureCache::~TextureCache() -{} - Texture TextureCache::getTexture(const std::string &texture_path) { auto itr = texture_map_.find(texture_path); -- cgit