20 #ifndef ANTKEEPER_GL_FRAMEBUFFER_HPP
21 #define ANTKEEPER_GL_FRAMEBUFFER_HPP
61 [[nodiscard]]
inline constexpr
const std::vector<framebuffer_attachment>&
attachments() const noexcept
67 [[nodiscard]]
inline constexpr
const std::array<std::uint32_t, 2>&
dimensions() const noexcept
73 [[nodiscard]]
inline constexpr std::uint32_t
width() const noexcept
75 return m_dimensions[0];
79 [[nodiscard]]
inline constexpr std::uint32_t
height() const noexcept
81 return m_dimensions[1];
87 std::vector<framebuffer_attachment> m_attachments;
88 std::array<std::uint32_t, 2> m_dimensions{0, 0};
89 unsigned int m_gl_named_framebuffer{0};
framebuffer(std::span< const framebuffer_attachment > attachments, std::uint32_t width, std::uint32_t height)
Constructs a framebuffer.
~framebuffer()
Destroys a framebuffer.
constexpr const std::array< std::uint32_t, 2 > & dimensions() const noexcept
Returns the dimensions of the framebuffer.
constexpr const std::vector< framebuffer_attachment > & attachments() const noexcept
Returns the framebuffer attachments.
constexpr std::uint32_t width() const noexcept
Returns the width of the framebuffer.
constexpr std::uint32_t height() const noexcept
Returns the height of the framebuffer.
void resize(std::uint32_t width, std::uint32_t height)
Resizes the framebuffer.
Graphics pipeline interface.
Graphics library interface.