From 38b6d33aec7131cd831b0d60c6ef6ea00141020e Mon Sep 17 00:00:00 2001 From: Fabian Klemp Date: Mon, 17 Nov 2014 13:28:42 +0100 Subject: [PATCH] Changing getCamera to pointers. --- level.cc | 4 ++-- level.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/level.cc b/level.cc index 9f03ea4..46bff21 100644 --- a/level.cc +++ b/level.cc @@ -68,8 +68,8 @@ std::vector Level::getLights() { return lights; } -Camera Level::getCamera() { - return camera; +Camera* Level::getCamera() { + return &camera; } Object* Level::getCameraCenter() { diff --git a/level.hh b/level.hh index 9af2592..8784be2 100644 --- a/level.hh +++ b/level.hh @@ -20,7 +20,7 @@ class Level { glm::vec3 getAmbientLight(); std::vector getLights(); Object* getCameraCenter(); - Camera getCamera(); + Camera* getCamera(); private: std::string filePath; std::vector objects;