Changing getCamera to pointers.
This commit is contained in:
parent
1fb288b220
commit
3485299717
4
level.cc
4
level.cc
@ -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() {
|
||||||
|
2
level.hh
2
level.hh
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user