mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-02 16:59:37 -05:00
Allow access to the console through OpenSpaceEngine
Enable scripting for showing/hiding the console
This commit is contained in:
@@ -26,8 +26,10 @@
|
||||
#define __OPENSPACEENGINE_H__
|
||||
|
||||
#include <openspace/interaction/interactionhandler.h>
|
||||
#include <openspace/interaction/luaconsole.h>
|
||||
#include <openspace/rendering/renderengine.h>
|
||||
#include <openspace/engine/configurationmanager.h>
|
||||
|
||||
#include <ghoul/cmdparser/commandlineparser.h>
|
||||
|
||||
namespace openspace {
|
||||
@@ -55,6 +57,7 @@ public:
|
||||
interaction::InteractionHandler& interactionHandler();
|
||||
RenderEngine& renderEngine();
|
||||
scripting::ScriptEngine& scriptEngine();
|
||||
LuaConsole& console();
|
||||
|
||||
// SGCT callbacks
|
||||
bool initializeGL();
|
||||
@@ -71,6 +74,8 @@ public:
|
||||
void encode();
|
||||
void decode();
|
||||
|
||||
|
||||
|
||||
private:
|
||||
OpenSpaceEngine(std::string programName);
|
||||
~OpenSpaceEngine();
|
||||
@@ -88,10 +93,10 @@ private:
|
||||
RenderEngine _renderEngine;
|
||||
scripting::ScriptEngine _scriptEngine;
|
||||
ghoul::cmdparser::CommandlineParser _commandlineParser;
|
||||
LuaConsole _console;
|
||||
|
||||
SyncBuffer* _syncBuffer;
|
||||
|
||||
LuaConsole* _console;
|
||||
};
|
||||
|
||||
#define OsEng (openspace::OpenSpaceEngine::ref())
|
||||
|
||||
Reference in New Issue
Block a user