mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
New mechanism to fade in&out the rendering view
This commit is contained in:
4
View.h
4
View.h
@@ -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_; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user