Antkeeper
0.0.1
|
#include <framebuffer.hpp>
Public Member Functions | |
framebuffer (std::span< const framebuffer_attachment > attachments, std::uint32_t width, std::uint32_t height) | |
Constructs a framebuffer. More... | |
~framebuffer () | |
Destroys a framebuffer. More... | |
void | resize (std::uint32_t width, std::uint32_t height) |
Resizes the framebuffer. More... | |
constexpr const std::vector< framebuffer_attachment > & | attachments () const noexcept |
Returns the framebuffer attachments. More... | |
constexpr const std::array< std::uint32_t, 2 > & | dimensions () const noexcept |
Returns the dimensions of the framebuffer. More... | |
constexpr std::uint32_t | width () const noexcept |
Returns the width of the framebuffer. More... | |
constexpr std::uint32_t | height () const noexcept |
Returns the height of the framebuffer. More... | |
Friends | |
class | pipeline |
Definition at line 35 of file framebuffer.hpp.
gl::framebuffer::framebuffer | ( | std::span< const framebuffer_attachment > | attachments, |
std::uint32_t | width, | ||
std::uint32_t | height | ||
) |
Constructs a framebuffer.
attachments | Framebuffer attachments. |
width | Width of the framebuffer. |
height | Height of the framebuffer. |
Definition at line 26 of file framebuffer.cpp.
gl::framebuffer::~framebuffer | ( | ) |
Destroys a framebuffer.
Definition at line 112 of file framebuffer.cpp.
|
inlineconstexprnoexcept |
Returns the framebuffer attachments.
Definition at line 61 of file framebuffer.hpp.
|
inlineconstexprnoexcept |
Returns the dimensions of the framebuffer.
Definition at line 67 of file framebuffer.hpp.
|
inlineconstexprnoexcept |
Returns the height of the framebuffer.
Definition at line 79 of file framebuffer.hpp.
void gl::framebuffer::resize | ( | std::uint32_t | width, |
std::uint32_t | height | ||
) |
Resizes the framebuffer.
width | New width of the framebuffer. |
height | New height of the framebuffer. |
Definition at line 120 of file framebuffer.cpp.
|
inlineconstexprnoexcept |
Returns the width of the framebuffer.
Definition at line 73 of file framebuffer.hpp.
|
friend |
Definition at line 85 of file framebuffer.hpp.