Make OpenSpace work with the new SGCT version

This commit is contained in:
Alexander Bock
2020-04-10 17:38:18 +02:00
parent 5646786331
commit 0dc2fc9430
10 changed files with 316 additions and 399 deletions
+2 -2
View File
@@ -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();
+2 -2
View File
@@ -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; };
+3 -3
View File
@@ -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