Using std future promises to get thumbnail of render view

This commit is contained in:
Bruno
2021-04-24 13:14:57 +02:00
parent 5473c0b38b
commit f643e80de7
4 changed files with 32 additions and 16 deletions

View File

@@ -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_;
};