#include <frame_buffer.h>
|
| FrameBuffer (Flag f, Mode m) |
|
uvec2 | size (void) const |
| Size of the frame buffer in pixels.
|
|
std::span< char > | span (void) |
| Pointer to the content.
|
|
std::span< char > | prefix (void) |
|
std::span< char > | pixels (void) |
|
std::span< char > | suffix (void) |
|
void | resize_and_clear (uvec2 s) |
| Changes the size and clears the content according to the mode.
|
|
void | write_ascii (std::size_t x, std::size_t y, Texture::texel4 color) |
| Write pixel at {x, y} with color , ASCII output.
|
|
void | write_colored (std::size_t x, std::size_t y, Texture::texel4 color) |
| Write pixel at {x, y} with color , colored output.
|
|
void | flip (void) |
| Inverts the Y coord.
|
|
std::size_t | dedup (void) |
| Eliminates redundant information, possibly reducing the size.
|
|
◆ Flag
◆ Mode
◆ texel4
◆ FrameBuffer()
nngn::term::FrameBuffer::FrameBuffer |
( |
Flag | f, |
|
|
Mode | m ) |
|
inline |
◆ dedup()
std::size_t nngn::term::FrameBuffer::dedup |
( |
void | | ) |
|
Eliminates redundant information, possibly reducing the size.
Unique elements and the prefix/suffix will be in span(0, dedup())
.
◆ flip()
void nngn::term::FrameBuffer::flip |
( |
void | | ) |
|
Inverts the Y coord.
of all pixels, must be called before dedup.
◆ pixel_size()
std::size_t nngn::term::FrameBuffer::pixel_size |
( |
void | | ) |
const |
|
inlineprivate |
◆ pixels()
std::span< char > nngn::term::FrameBuffer::pixels |
( |
void | | ) |
|
|
inline |
◆ prefix()
std::span< char > nngn::term::FrameBuffer::prefix |
( |
void | | ) |
|
|
inline |
◆ prefix_size_from_flags()
std::size_t nngn::term::FrameBuffer::prefix_size_from_flags |
( |
Flag | f | ) |
|
|
inlinestaticconstexprprivate |
◆ resize_and_clear()
void nngn::term::FrameBuffer::resize_and_clear |
( |
uvec2 | s | ) |
|
Changes the size and clears the content according to the mode.
◆ size()
uvec2 nngn::term::FrameBuffer::size |
( |
void | | ) |
const |
|
inline |
Size of the frame buffer in pixels.
◆ span()
std::span< char > nngn::term::FrameBuffer::span |
( |
void | | ) |
|
|
inline |
◆ suffix()
std::span< char > nngn::term::FrameBuffer::suffix |
( |
void | | ) |
|
|
inline |
◆ write_ascii()
void nngn::term::FrameBuffer::write_ascii |
( |
std::size_t | x, |
|
|
std::size_t | y, |
|
|
Texture::texel4 | color ) |
|
inline |
Write pixel at {x, y}
with color
, ASCII output.
◆ write_colored()
void nngn::term::FrameBuffer::write_colored |
( |
std::size_t | x, |
|
|
std::size_t | y, |
|
|
Texture::texel4 | color ) |
|
inline |
Write pixel at {x, y}
with color
, colored output.
◆ flags
◆ flip_tmp
std::vector<char> nngn::term::FrameBuffer::flip_tmp = {} |
|
private |
◆ m_size
uvec2 nngn::term::FrameBuffer::m_size = {} |
|
private |
◆ mode
Mode nngn::term::FrameBuffer::mode |
|
private |
◆ prefix_size
std::size_t nngn::term::FrameBuffer::prefix_size |
|
private |
◆ suffix_size
std::size_t nngn::term::FrameBuffer::suffix_size |
|
private |
std::vector<char> nngn::term::FrameBuffer::v = {} |
|
private |
The documentation for this class was generated from the following files: