mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Feature/minvr (#744)
* Move SGCT external library from ext/sgct to apps/OpenSpace/ext/sgct * Remove all GLFW dependencies from openspace-core * Add MinVR dependency * Add new executable OpenSpace-MinVR that uses MinVR instead of SGCT
This commit is contained in:
@@ -28,11 +28,6 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace sgct {
|
||||
template <typename T>
|
||||
class SharedVector;
|
||||
} // namespace sgct
|
||||
|
||||
namespace openspace {
|
||||
|
||||
class SyncBuffer {
|
||||
@@ -56,16 +51,19 @@ public:
|
||||
template <typename T>
|
||||
void decode(T& value);
|
||||
|
||||
void write();
|
||||
void reset();
|
||||
|
||||
void read();
|
||||
//void write();
|
||||
//void read();
|
||||
|
||||
void setData(std::vector<char> data);
|
||||
std::vector<char> data();
|
||||
|
||||
private:
|
||||
size_t _n;
|
||||
size_t _encodeOffset = 0;
|
||||
size_t _decodeOffset = 0;
|
||||
std::vector<char> _dataStream;
|
||||
std::unique_ptr<sgct::SharedVector<char>> _synchronizationBuffer;
|
||||
};
|
||||
|
||||
} // namespace openspace
|
||||
|
||||
Reference in New Issue
Block a user