mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 01:09:34 -05:00
Make OpenSpace work with the new SGCT version
This commit is contained in:
@@ -84,8 +84,8 @@ public:
|
||||
void touchDetectionCallback(TouchInput input);
|
||||
void touchUpdateCallback(TouchInput input);
|
||||
void touchExitCallback(TouchInput input);
|
||||
std::vector<char> encode();
|
||||
void decode(std::vector<char> data);
|
||||
std::vector<std::byte> encode();
|
||||
void decode(std::vector<std::byte> data);
|
||||
|
||||
void scheduleLoadSingleAsset(std::string assetPath);
|
||||
void toggleShutdownMode();
|
||||
|
||||
@@ -53,13 +53,13 @@ public:
|
||||
* Encodes all added Syncables in the injected <code>SyncBuffer</code>.
|
||||
* This method is only called on the SGCT master node
|
||||
*/
|
||||
std::vector<char> encodeSyncables();
|
||||
std::vector<std::byte> encodeSyncables();
|
||||
|
||||
/**
|
||||
* Decodes the <code>SyncBuffer</code> into the added Syncables.
|
||||
* This method is only called on the SGCT slave nodes
|
||||
*/
|
||||
void decodeSyncables(std::vector<char> data);
|
||||
void decodeSyncables(std::vector<std::byte> data);
|
||||
|
||||
/**
|
||||
* Invokes the presync method of all added Syncables
|
||||
|
||||
@@ -94,11 +94,6 @@ struct WindowDelegate {
|
||||
|
||||
void (*setEyeSeparationDistance)(float distance) = [](float) {};
|
||||
|
||||
glm::ivec4 (*viewportPixelCoordinates)() = []() { return glm::ivec4(0, 0, 0, 0); };
|
||||
|
||||
void (*sendMessageToExternalControl)(const std::vector<char>& message) =
|
||||
[](const std::vector<char>&) {};
|
||||
|
||||
bool (*isFisheyeRendering)() = []() { return false; };
|
||||
|
||||
unsigned int(*takeScreenshot)(bool applyWarping) = [](bool) { return 0u; };
|
||||
|
||||
@@ -57,14 +57,14 @@ public:
|
||||
//void write();
|
||||
//void read();
|
||||
|
||||
void setData(std::vector<char> data);
|
||||
std::vector<char> data();
|
||||
void setData(std::vector<std::byte> data);
|
||||
std::vector<std::byte> data();
|
||||
|
||||
private:
|
||||
size_t _n;
|
||||
size_t _encodeOffset = 0;
|
||||
size_t _decodeOffset = 0;
|
||||
std::vector<char> _dataStream;
|
||||
std::vector<std::byte> _dataStream;
|
||||
};
|
||||
|
||||
} // namespace openspace
|
||||
|
||||
Reference in New Issue
Block a user