#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.
|
|
| 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 [1/2]
◆ Flag [2/2]
◆ Mode [1/2]
◆ Mode [2/2]
◆ texel4 [1/2]
◆ texel4 [2/2]
◆ FrameBuffer() [1/2]
nngn::term::FrameBuffer::FrameBuffer |
( |
Flag |
f, |
|
|
Mode |
m |
|
) |
| |
|
inline |
◆ FrameBuffer() [2/2]
nngn::term::FrameBuffer::FrameBuffer |
( |
Flag |
f, |
|
|
Mode |
m |
|
) |
| |
◆ dedup() [1/2]
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())
.
◆ dedup() [2/2]
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() [1/2]
void nngn::term::FrameBuffer::flip |
( |
void |
| ) |
|
Inverts the Y coord.
of all pixels, must be called before dedup.
◆ flip() [2/2]
void nngn::term::FrameBuffer::flip |
( |
void |
| ) |
|
Inverts the Y coord.
of all pixels, must be called before dedup.
◆ pixel_size() [1/2]
std::size_t nngn::term::FrameBuffer::pixel_size |
( |
void |
| ) |
const |
|
inlineprivate |
◆ pixel_size() [2/2]
std::size_t nngn::term::FrameBuffer::pixel_size |
( |
void |
| ) |
const |
|
private |
◆ pixels() [1/2]
std::span< char > nngn::term::FrameBuffer::pixels |
( |
void |
| ) |
|
|
inline |
◆ pixels() [2/2]
std::span< char > nngn::term::FrameBuffer::pixels |
( |
void |
| ) |
|
◆ prefix() [1/2]
std::span< char > nngn::term::FrameBuffer::prefix |
( |
void |
| ) |
|
|
inline |
◆ prefix() [2/2]
std::span< char > nngn::term::FrameBuffer::prefix |
( |
void |
| ) |
|
◆ prefix_size_from_flags() [1/2]
constexpr std::size_t nngn::term::FrameBuffer::prefix_size_from_flags |
( |
Flag |
f | ) |
|
|
inlinestaticconstexprprivate |
◆ prefix_size_from_flags() [2/2]
static constexpr std::size_t nngn::term::FrameBuffer::prefix_size_from_flags |
( |
Flag |
f | ) |
|
|
staticconstexprprivate |
◆ resize_and_clear() [1/2]
void nngn::term::FrameBuffer::resize_and_clear |
( |
uvec2 |
s | ) |
|
Changes the size and clears the content according to the mode.
◆ resize_and_clear() [2/2]
void nngn::term::FrameBuffer::resize_and_clear |
( |
uvec2 |
s | ) |
|
Changes the size and clears the content according to the mode.
◆ size() [1/2]
uvec2 nngn::term::FrameBuffer::size |
( |
void |
| ) |
const |
|
inline |
Size of the frame buffer in pixels.
◆ size() [2/2]
uvec2 nngn::term::FrameBuffer::size |
( |
void |
| ) |
const |
|
inline |
Size of the frame buffer in pixels.
◆ span() [1/2]
std::span< char > nngn::term::FrameBuffer::span |
( |
void |
| ) |
|
|
inline |
◆ span() [2/2]
std::span< char > nngn::term::FrameBuffer::span |
( |
void |
| ) |
|
|
inline |
◆ suffix() [1/2]
std::span< char > nngn::term::FrameBuffer::suffix |
( |
void |
| ) |
|
|
inline |
◆ suffix() [2/2]
std::span< char > nngn::term::FrameBuffer::suffix |
( |
void |
| ) |
|
◆ write_ascii() [1/2]
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_ascii() [2/2]
void nngn::term::FrameBuffer::write_ascii |
( |
std::size_t |
x, |
|
|
std::size_t |
y, |
|
|
Texture::texel4 |
color |
|
) |
| |
Write pixel at {x, y}
with color
, ASCII output.
◆ write_colored() [1/2]
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.
◆ write_colored() [2/2]
void nngn::term::FrameBuffer::write_colored |
( |
std::size_t |
x, |
|
|
std::size_t |
y, |
|
|
Texture::texel4 |
color |
|
) |
| |
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: