mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-01 09:08:49 -06:00
Added SyncBuffer class
- Added SyncBuffer class for easy and effecient synchronization - Small changes to Camera class - Forward declared a few classes to minimize dependencies
This commit is contained in:
@@ -29,13 +29,11 @@
|
||||
|
||||
// sgct header has to be included before all others due to Windows header
|
||||
#define SGCT_WINDOWS_INCLUDE
|
||||
#include "sgct.h"
|
||||
#include <sgct.h>
|
||||
|
||||
#include <openspace/interaction/interactionhandler.h>
|
||||
#include <openspace/rendering/renderengine.h>
|
||||
#include <openspace/engine/configurationmanager.h>
|
||||
#include <openspace/interaction/luaconsole.h>
|
||||
//#include <ghoul/misc/dictionary.h>
|
||||
|
||||
#include <ghoul/opencl/clcontext.h>
|
||||
#include <ghoul/opencl/clcommandqueue.h>
|
||||
@@ -47,15 +45,14 @@
|
||||
|
||||
#include <openspace/flare/flare.h>
|
||||
|
||||
#define ABUFFER_SINGLE_LINKED 1
|
||||
#define ABUFFER_FIXED 2
|
||||
#define ABUFFER_DYNAMIC 3
|
||||
#define ABUFFER_IMPLEMENTATION ABUFFER_SINGLE_LINKED
|
||||
|
||||
// #define OPENSPACE_VIDEO_EXPORT
|
||||
|
||||
namespace openspace {
|
||||
|
||||
// Forward declare to minimize dependencies
|
||||
class SyncBuffer;
|
||||
class LuaConsole;
|
||||
|
||||
namespace scripting {
|
||||
class ScriptEngine;
|
||||
}
|
||||
@@ -117,7 +114,7 @@ private:
|
||||
// ScriptEngine* _scriptEngine;
|
||||
ghoul::opencl::CLContext _context;
|
||||
|
||||
sgct::SharedVector<char> _synchronizationBuffer;
|
||||
SyncBuffer* _syncBuffer;
|
||||
|
||||
bool _inputCommand;
|
||||
LuaConsole* _console;
|
||||
|
||||
Reference in New Issue
Block a user