Changing getCamera to pointers.

This commit is contained in:
Fabian Klemp 2014-11-17 13:28:42 +01:00
parent 176f7e8176
commit 38b6d33aec
2 changed files with 3 additions and 3 deletions

View File

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

View File

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