added a current run time variable for the openspace engine + get/set method.

run time is set in preSync from SGCT runtime at the moment
This commit is contained in:
Joakim Kilby
2015-06-24 17:51:32 +02:00
parent 9a74bd60b7
commit 13eb012a04
3 changed files with 13 additions and 0 deletions

View File

@@ -71,6 +71,8 @@ public:
bool initialize();
bool isMaster();
void setMaster(bool master);
double runTime();
void setRunTime(double t);
static bool findConfiguration(std::string& filename);
// Guaranteed to return a valid pointer
@@ -131,6 +133,7 @@ private:
gui::GUI* _gui;
network::ParallelConnection* _parallelConnection;
bool _isMaster;
double _runTime;
SyncBuffer* _syncBuffer;
};