Implementation of Recorder class. For now, only a capture to PNG is

available, but the mechanism is in place for video capture.
This commit is contained in:
brunoherbelin
2020-07-23 23:50:32 +02:00
parent cec49a9a62
commit 978bbff9a7
7 changed files with 144 additions and 0 deletions

View File

@@ -5,6 +5,8 @@
#include "View.h"
#include "Source.h"
class Recorder;
class Session
{
public:
@@ -45,6 +47,10 @@ public:
// get frame result of render
inline FrameBuffer *frame () const { return render_.frame(); }
// add recorders
void addRecorder(Recorder *rec);
void clearRecorders();
// configure rendering resolution
void setResolution(glm::vec3 resolution);
@@ -67,6 +73,8 @@ protected:
SourceList sources_;
std::map<View::Mode, Group*> config_;
bool active_;
std::list<Recorder *> recorders_;
};
#endif // SESSION_H