From af3bff1a3f6158fcbbd6fce6f8afaf6a7d2cf524 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 22 May 2024 00:25:03 -0500 Subject: [PATCH] [glutils] Add FrameBuffer::sizef --- deps/glutils/include/glutils/glutils.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deps/glutils/include/glutils/glutils.hpp b/deps/glutils/include/glutils/glutils.hpp index 8ebc73a3..3c7db967 100644 --- a/deps/glutils/include/glutils/glutils.hpp +++ b/deps/glutils/include/glutils/glutils.hpp @@ -13,6 +13,7 @@ #include #include #include +#include #include namespace glutils { @@ -138,6 +139,14 @@ struct FrameBuffer { return fbo.id; } + [[nodiscard]] + constexpr ox::Vec2 sizef() const noexcept { + return { + static_cast(width), + static_cast(height), + }; + } + [[nodiscard]] constexpr ox::Size size() const noexcept { return {