[glutils] Add FrameBuffer::sizef
This commit is contained in:
parent
87416e13ee
commit
af3bff1a3f
9
deps/glutils/include/glutils/glutils.hpp
vendored
9
deps/glutils/include/glutils/glutils.hpp
vendored
@ -13,6 +13,7 @@
|
|||||||
#include <ox/std/error.hpp>
|
#include <ox/std/error.hpp>
|
||||||
#include <ox/std/size.hpp>
|
#include <ox/std/size.hpp>
|
||||||
#include <ox/std/string.hpp>
|
#include <ox/std/string.hpp>
|
||||||
|
#include <ox/std/vec.hpp>
|
||||||
#include <ox/std/vector.hpp>
|
#include <ox/std/vector.hpp>
|
||||||
|
|
||||||
namespace glutils {
|
namespace glutils {
|
||||||
@ -138,6 +139,14 @@ struct FrameBuffer {
|
|||||||
return fbo.id;
|
return fbo.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[nodiscard]]
|
||||||
|
constexpr ox::Vec2 sizef() const noexcept {
|
||||||
|
return {
|
||||||
|
static_cast<float>(width),
|
||||||
|
static_cast<float>(height),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
constexpr ox::Size size() const noexcept {
|
constexpr ox::Size size() const noexcept {
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user