Changing getCamera to pointers.

This commit is contained in:
Faerbit 2014-11-15 14:54:44 +01:00
parent 1fb288b220
commit 3485299717
2 changed files with 3 additions and 3 deletions

View File

@ -74,8 +74,8 @@ std::vector<Light> Level::getLights() {
return lights; return lights;
} }
Camera Level::getCamera() { Camera* Level::getCamera() {
return camera; return &camera;
} }
Object* Level::getCameraCenter() { Object* Level::getCameraCenter() {

View File

@ -20,7 +20,7 @@ class Level {
glm::vec3 getAmbientLight(); glm::vec3 getAmbientLight();
std::vector<Light> getLights(); std::vector<Light> getLights();
Object* getCameraCenter(); Object* getCameraCenter();
Camera getCamera(); Camera* getCamera();
private: private:
std::string filePath; std::string filePath;
std::vector<Object> objects; std::vector<Object> objects;