aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-08-01 23:47:35 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-08-01 23:47:35 +0100
commit31317175d72c62994b98a93e1b827633b4de9cb2 (patch)
tree91e9f1068da03a7a5419c44a927a30ff7d29235c /src
parent67770ad6b1fcbc6730c140b0d3edd3fc9efbdc7b (diff)
downloadYAGE-31317175d72c62994b98a93e1b827633b4de9cb2.tar.gz
YAGE-31317175d72c62994b98a93e1b827633b4de9cb2.zip
Fixing constructors and destructors
Diffstat (limited to 'src')
-rw-r--r--src/body.cpp3
-rw-r--r--src/camera2d.cpp3
-rw-r--r--src/glslprogram.cpp3
-rw-r--r--src/texturecache.cpp3
4 files changed, 0 insertions, 12 deletions
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);