Move shaders into their correct modules

Add path determination to modules that automatically sets correct path resolve tokens
This commit is contained in:
Alexander Bock
2015-05-21 15:17:38 +02:00
parent e51df4b2a0
commit ca7dcd4762
52 changed files with 212 additions and 68 deletions
+10
View File
@@ -48,9 +48,19 @@
#include <modules/base/ephemeris/dynamicephemeris.h>
#include <modules/base/ephemeris/spiceephemeris.h>
#include <ghoul/filesystem/filesystem>
namespace openspace {
BaseModule::BaseModule() {
setName("Base");
}
bool BaseModule::initialize() {
bool success = OpenSpaceModule::initialize();
if (!success)
return false;
FactoryManager::ref().addFactory(new ghoul::TemplateFactory<planetgeometry::PlanetGeometry>);
FactoryManager::ref().addFactory(new ghoul::TemplateFactory<modelgeometry::ModelGeometry>);