2015-03-04 20:28:46 +00:00
|
|
|
#include "skydome.hh"
|
2015-04-12 19:06:59 +00:00
|
|
|
#include <ACGL/OpenGL/Creator/Texture2DCreator.hh>
|
2015-03-04 20:28:46 +00:00
|
|
|
|
2015-04-12 19:06:59 +00:00
|
|
|
Skydome::Skydome(Model model, string dayTexturePath, string nightTexturePath) :
|
|
|
|
Object(model, Material(), glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f), true) {
|
|
|
|
this->dayTexture = Texture2DFileManager::the()->get(Texture2DCreator(dayTexturePath));
|
|
|
|
this->nightTexture = Texture2DFileManager::the()->get(Texture2DCreator(nightTexturePath));
|
2015-03-04 20:28:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Skydome::Skydome() {
|
|
|
|
}
|
|
|
|
|
2015-04-12 19:06:59 +00:00
|
|
|
SharedTexture2D Skydome::getDayTexture() {
|
|
|
|
return dayTexture;
|
|
|
|
}
|
|
|
|
|
|
|
|
SharedTexture2D Skydome::getNightTexture() {
|
|
|
|
return nightTexture;
|
2015-03-04 20:28:46 +00:00
|
|
|
}
|