Allow Lua scripts to reload scenegraph file

This commit is contained in:
Alexander Bock
2014-09-26 01:02:13 +02:00
parent bc36cdca03
commit d7190b2239
3 changed files with 67 additions and 20 deletions
+6 -1
View File
@@ -64,7 +64,8 @@ public:
/*
* Load the scenegraph from the provided folder
*/
bool loadScene(const std::string& sceneDescriptionFilePath);
void scheduleLoadSceneFile(const std::string& sceneDescriptionFilePath);
void clearSceneGraph();
void loadModule(const std::string& modulePath);
@@ -110,6 +111,8 @@ public:
static scripting::ScriptEngine::LuaLibrary luaLibrary();
private:
bool loadSceneInternal(const std::string& sceneDescriptionFilePath);
std::string _focus, _position;
// actual scenegraph
@@ -117,6 +120,8 @@ private:
std::vector<SceneGraphNode*> _nodes;
std::map<std::string, SceneGraphNode*> _allNodes;
RuntimeData* _runtimeData;
std::string _sceneGraphToLoad;
};
} // namespace openspace