More cleanup of FactoryManager

This commit is contained in:
Alexander Bock
2015-12-14 17:55:24 -08:00
parent 177571195c
commit 0735d0fc2d
8 changed files with 65 additions and 32 deletions
+6 -2
View File
@@ -118,8 +118,12 @@ OpenSpaceEngine::OpenSpaceEngine(std::string programName,
_interactionHandler->setPropertyOwner(_globalPropertyNamespace.get());
_globalPropertyNamespace->addPropertySubOwner(_interactionHandler.get());
FactoryManager::initialize();
FactoryManager::ref().addFactory(new ghoul::TemplateFactory<Renderable>);
FactoryManager::ref().addFactory(new ghoul::TemplateFactory<Ephemeris>);
FactoryManager::ref().addFactory(
std::make_unique<ghoul::TemplateFactory<Renderable>>()
);
FactoryManager::ref().addFactory(
std::make_unique<ghoul::TemplateFactory<Ephemeris>>()
);
SpiceManager::initialize();
Time::initialize();
ghoul::systemcapabilities::SystemCapabilities::initialize();