Set attributes of screenspacerenderable through dictionary

This commit is contained in:
Sebastian Piwell
2016-05-03 15:35:33 -04:00
parent 5e5e9244f5
commit 1e4e8919c3
8 changed files with 120 additions and 63 deletions
+4 -1
View File
@@ -139,7 +139,10 @@ namespace openspace {
LWARNING("Could not find image '" << filepath << "'");
return;
}
OsEng.renderEngine().registerScreenSpaceRenderable(std::make_shared<ScreenSpaceImage>(filepath));
std::string luaTable = "{Type = 'ScreenSpaceImage', TexturePath = '+" + filepath + " ' }";
std::string script = "openspace.registerScreenSpaceRenderable(" + luaTable + ");";
OsEng.scriptEngine().queueScript(script);
// OsEng.renderEngine().registerScreenSpaceRenderable(std::make_shared<ScreenSpaceImage>(filepath));
}
namespace gui {