mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user