mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-02 08:49:20 -05:00
added synced versions of shared variables and modified set/get methods to adress the right versions of variables
This commit is contained in:
@@ -169,6 +169,11 @@ private:
|
||||
glm::vec2 _sharedScaling;
|
||||
psc _sharedPosition;
|
||||
glm::mat4 _sharedViewRotationMatrix;
|
||||
|
||||
//synced copies of local variables
|
||||
glm::vec2 _syncedScaling;
|
||||
psc _syncedPosition;
|
||||
glm::mat4 _syncedViewRotationMatrix;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -197,6 +197,11 @@ private:
|
||||
double _sharedTime;
|
||||
double _sharedDt;
|
||||
bool _sharedTimeJumped;
|
||||
|
||||
//synced copies
|
||||
double _syncedTime;
|
||||
double _syncedDt;
|
||||
bool _syncedTimeJumped;
|
||||
|
||||
|
||||
std::mutex _syncMutex;
|
||||
|
||||
Reference in New Issue
Block a user