mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-26 14:09:05 -06:00
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:
@@ -110,6 +110,7 @@ OpenSpaceEngine::OpenSpaceEngine(std::string programName)
|
||||
, _moduleEngine(new ModuleEngine)
|
||||
, _gui(new gui::GUI)
|
||||
, _isMaster(false)
|
||||
, _runTime(0.0)
|
||||
, _syncBuffer(nullptr)
|
||||
, _parallelConnection(new network::ParallelConnection)
|
||||
{
|
||||
@@ -586,7 +587,15 @@ bool OpenSpaceEngine::isMaster(){
|
||||
void OpenSpaceEngine::setMaster(bool master){
|
||||
_isMaster = master;
|
||||
}
|
||||
|
||||
double OpenSpaceEngine::runTime(){
|
||||
return _runTime;
|
||||
}
|
||||
|
||||
void OpenSpaceEngine::setRunTime(double d){
|
||||
_runTime = d;
|
||||
}
|
||||
|
||||
void OpenSpaceEngine::preSynchronization() {
|
||||
FileSys.triggerFilesystemEvents();
|
||||
if (_isMaster) {
|
||||
|
||||
Reference in New Issue
Block a user