[glutils] Add size function to FrameBuffer

This commit is contained in:
2024-05-19 22:13:57 -05:00
parent df412cf8d0
commit 6df77a23ab
2 changed files with 10 additions and 2 deletions

View File

@ -137,6 +137,14 @@ struct FrameBuffer {
constexpr operator const GLuint&() const noexcept {
return fbo.id;
}
[[nodiscard]]
constexpr ox::Size size() const noexcept {
return {
width,
height,
};
}
};
class FrameBufferBind {