Add lua function to set camera state without loading from file

This commit is contained in:
Emil Axelsson
2017-12-06 14:58:14 +01:00
parent d16efef3d9
commit 79581c8556
7 changed files with 35 additions and 2 deletions

View File

@@ -34,6 +34,7 @@
#include <ghoul/filesystem/filesystem.h>
#include <ghoul/logging/logmanager.h>
#include <ghoul/misc/dictionary.h>
#include <ghoul/glm.h>
#include <glm/gtx/quaternion.hpp>
@@ -299,6 +300,13 @@ scripting::LuaLibrary NavigationHandler::luaLibrary() {
return {
"navigation",
{
{
"setCameraState",
&luascriptfunctions::setCameraState,
{},
"object",
"Set the camera state"
},
{
"saveCameraStateToFile",
&luascriptfunctions::saveCameraStateToFile,