New mechanism to fade in&out the rendering view

This commit is contained in:
brunoherbelin
2020-07-05 16:55:17 +02:00
parent 21bad90974
commit d4a22992eb
5 changed files with 40 additions and 16 deletions

4
View.h
View File

@@ -7,6 +7,7 @@
#include "FrameBuffer.h"
class Source;
class SessionSource;
class Surface;
class View
{
@@ -100,6 +101,7 @@ private:
class RenderView : public View
{
FrameBuffer *frame_buffer_;
Surface *fading_overlay_;
public:
RenderView ();
@@ -110,6 +112,8 @@ public:
void setResolution (glm::vec3 resolution = glm::vec3(0.f));
glm::vec3 resolution() const { return frame_buffer_->resolution(); }
void setFading(float f = 0.f);
inline FrameBuffer *frame () const { return frame_buffer_; }
};