[glutils] Add size function to FrameBuffer
This commit is contained in:
8
deps/glutils/include/glutils/glutils.hpp
vendored
8
deps/glutils/include/glutils/glutils.hpp
vendored
@ -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 {
|
||||
|
Reference in New Issue
Block a user