Compile Views in separate source files

This commit is contained in:
Bruno
2021-02-26 23:09:51 +01:00
parent e7a5d341e4
commit 004e1aaead
20 changed files with 3791 additions and 3434 deletions

View File

@@ -0,0 +1,27 @@
#ifndef RENDERVIEW_H
#define RENDERVIEW_H
#include "View.h"
class RenderView : public View
{
FrameBuffer *frame_buffer_;
Surface *fading_overlay_;
public:
RenderView ();
~RenderView ();
void draw () override;
bool canSelect(Source *) override;
void setResolution (glm::vec3 resolution = glm::vec3(0.f), bool useAlpha = false);
glm::vec3 resolution() const { return frame_buffer_->resolution(); }
void setFading(float f = 0.f);
float fading() const;
inline FrameBuffer *frame () const { return frame_buffer_; }
};
#endif // RENDERVIEW_H