Make the WindowWrapper a PropertyOwner and add SGCT properties to the subclass (closes #260)

This commit is contained in:
Alexander Bock
2017-03-03 18:39:35 -05:00
parent 8e0a37fb7a
commit 63af7e67f9
8 changed files with 38 additions and 9 deletions

View File

@@ -131,9 +131,12 @@ OpenSpaceEngine::OpenSpaceEngine(std::string programName,
, _isFirstRenderingFirstFrame(true)
{
_interactionHandler->setPropertyOwner(_globalPropertyNamespace.get());
// New property subowners also have to be added to the OnScreenGuiModule callback!
_globalPropertyNamespace->addPropertySubOwner(_interactionHandler.get());
_globalPropertyNamespace->addPropertySubOwner(_settingsEngine.get());
_globalPropertyNamespace->addPropertySubOwner(_renderEngine.get());
_globalPropertyNamespace->addPropertySubOwner(_windowWrapper.get());
FactoryManager::initialize();
FactoryManager::ref().addFactory(