mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Using std future promises to get thumbnail of render view
This commit is contained in:
@@ -83,6 +83,9 @@ public:
|
||||
// get frame result of render
|
||||
inline FrameBuffer *frame () const { return render_.frame(); }
|
||||
|
||||
// get thumbnail image
|
||||
inline FrameBufferImage *thumbnail () { return render_.thumbnail(); }
|
||||
|
||||
// configure rendering resolution
|
||||
void setResolution (glm::vec3 resolution, bool useAlpha = false);
|
||||
|
||||
@@ -138,6 +141,7 @@ protected:
|
||||
SessionSnapshots snapshots_;
|
||||
float fading_target_;
|
||||
std::mutex access_;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user