Added Lua method to print a screenshot

This commit is contained in:
Alexander Bock
2014-10-05 17:31:47 +02:00
parent 795d02b9aa
commit b7da50b3dd
3 changed files with 47 additions and 1 deletions
@@ -27,6 +27,8 @@
#include <openspace/scenegraph/scenegraph.h>
#include <openspace/scripting/scriptengine.h>
#include <memory>
#include <string>
@@ -58,6 +60,16 @@ public:
void serialize(std::vector<char>& dataStream, size_t& offset);
void deserialize(const std::vector<char>& dataStream, size_t& offset);
/**
* Returns the Lua library that contains all Lua functions available to affect the
* rendering. The functions contained are
* - openspace::luascriptfunctions::printScreen
* \return The Lua library that contains all Lua functions available to affect the
* rendering
*/
static scripting::ScriptEngine::LuaLibrary luaLibrary();
private:
Camera* _mainCamera;
SceneGraph* _sceneGraph;