Add the ability to render out the current recording time during a session recording

This commit is contained in:
Alexander Bock
2020-07-02 16:37:11 +02:00
parent cae025f530
commit ea95054bd2
3 changed files with 46 additions and 1 deletions

View File

@@ -27,6 +27,7 @@
#include <openspace/interaction/externinteraction.h>
#include <openspace/interaction/keyframenavigator.h>
#include <openspace/properties/scalar/boolproperty.h>
#include <openspace/scripting/lualibrary.h>
#include <vector>
@@ -65,6 +66,12 @@ public:
*/
void preSynchronization();
/**
* If enabled, calling this function will render information about the session
* recording that is currently taking place to the screen.
*/
void render();
/**
* Current time based on playback mode
*/
@@ -209,6 +216,8 @@ public:
std::vector<std::string> playbackList() const;
private:
properties::BoolProperty _renderPlaybackInformation;
enum class RecordedType {
Camera = 0,
Time,