Implementation of FrameBuffer resolution parameters, and saving in

session file of rendering resolution.
This commit is contained in:
brunoherbelin
2020-05-11 23:50:42 +02:00
parent 5a7e1fcbb8
commit 32030e66dc
11 changed files with 113 additions and 30 deletions

7
View.h
View File

@@ -4,7 +4,7 @@
#include <glm/glm.hpp>
#include "Scene.h"
class FrameBuffer;
#include "FrameBuffer.h"
class Source;
class View
@@ -57,7 +57,10 @@ public:
void draw () override;
void setResolution (uint width, uint height);
void setResolution (FrameBuffer::ResolutionAspectRatio aspect_ratio, FrameBuffer::ResolutionHeight height) {}
void setResolution (glm::vec3 resolution);
glm::vec3 resolution() const { return frame_buffer_->resolution(); }
inline FrameBuffer *frameBuffer () const { return frame_buffer_; }
};