Implemented two getters.
This commit is contained in:
parent
5c4b125e4d
commit
8f6ab075b5
8
level.cc
8
level.cc
@ -28,3 +28,11 @@ void Level::render() {
|
|||||||
objects[i].render();
|
objects[i].render();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
glm::vec3 Level::getAmbientLight() {
|
||||||
|
return ambientLight;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<Light> Level::getLights() {
|
||||||
|
return lights;
|
||||||
|
}
|
||||||
|
2
level.hh
2
level.hh
@ -15,6 +15,8 @@ class Level {
|
|||||||
~Level();
|
~Level();
|
||||||
void load(Shader shader); // Shader is necessary for correct texture assigning
|
void load(Shader shader); // Shader is necessary for correct texture assigning
|
||||||
void render();
|
void render();
|
||||||
|
glm::vec3 getAmbientLight();
|
||||||
|
std::vector<Light> getLights();
|
||||||
private:
|
private:
|
||||||
std::string filePath;
|
std::string filePath;
|
||||||
std::vector<Object> objects;
|
std::vector<Object> objects;
|
||||||
|
Loading…
Reference in New Issue
Block a user