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:
Jonas Strandstedt
2014-10-22 16:37:54 +02:00
parent a8f3923659
commit a7da4d84cc
10 changed files with 198 additions and 35 deletions

View File

@@ -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;