Implemented two getters.

This commit is contained in:
Faerbit 2014-10-30 23:59:03 +01:00
parent 5c4b125e4d
commit 8f6ab075b5
2 changed files with 10 additions and 0 deletions

View File

@ -28,3 +28,11 @@ void Level::render() {
objects[i].render();
}
}
glm::vec3 Level::getAmbientLight() {
return ambientLight;
}
std::vector<Light> Level::getLights() {
return lights;
}

View File

@ -15,6 +15,8 @@ class Level {
~Level();
void load(Shader shader); // Shader is necessary for correct texture assigning
void render();
glm::vec3 getAmbientLight();
std::vector<Light> getLights();
private:
std::string filePath;
std::vector<Object> objects;