Implementation of vertical crop (2 axis projection manipulation in frame

buffer). Cleanup of UI for appearance view.
This commit is contained in:
brunoherbelin
2020-11-26 20:30:37 +01:00
parent b6af17f283
commit 20f1320e2d
15 changed files with 575 additions and 162 deletions

View File

@@ -44,7 +44,7 @@ public:
// projection and crop
glm::mat4 projection() const;
float projectionAspectRatio() const;
glm::vec2 projectionArea() const;
void crop(glm::vec2 c);
// internal pixel format
@@ -60,6 +60,7 @@ private:
RenderingAttrib attrib_;
glm::mat4 projection_;
glm::vec2 projection_crop_;
uint textureid_, intermediate_textureid_;
uint framebufferid_, intermediate_framebufferid_;
bool use_alpha_, use_multi_sampling_;