X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2Fviewport.hpp;h=e9330c5e52f564b4921f831ea14013311a07ab2a;hb=0146c7b7f02ef5d74116546489aee85383bb4969;hp=cc9a100a6af5af5abb137be7f6977bd1bd69db70;hpb=dfe661278fe5fd69e821d530d50b78082d19ce54;p=tacos.git diff --git a/src/graphics/viewport.hpp b/src/graphics/viewport.hpp index cc9a100..e9330c5 100644 --- a/src/graphics/viewport.hpp +++ b/src/graphics/viewport.hpp @@ -18,6 +18,7 @@ public: int Width() const noexcept { return width; } int Height() const noexcept { return height; } + glm::vec2 InverseSize() const noexcept { return inverse_size; } const glm::mat4 &Perspective() const noexcept { return perspective; } const glm::mat4 &Ortho() const noexcept { return ortho; } @@ -25,6 +26,7 @@ public: private: int width; int height; + glm::vec2 inverse_size; float fov; float aspect;