|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
The retained geometry of every label, by entity. Ordered: a frame submits in entity order, not in whatever order a hash left them. More...
#include <RetainedText.hpp>
Public Member Functions | |
| void | begin (u32 entity, bool sdf, bool screen, bool hasBox, i32 layer, f32 boxWidth, f32 boxHeight, bool autoKind=false) |
| Replaces any geometry the entity held, with none yet: batches follow through add(). | |
| bool | add (u32 entity, const f32 *vertices, i32 vertexCount, const u16 *indices, i32 indexCount, u32 pageId, TextGlyphMode mode=TextGlyphMode::Color) |
| One batch of an entity begun with begin(). False when it was not begun or the batch is not whole quads. | |
| void | clear (u32 entity) |
| void | clearAll () |
| template<typename Visit> | |
| bool | takeChanged (Visit &&visit) |
Hands visit every label laid out, given glyphs or let go since the last call, and forgets them; false when they were all let go at once (clearAll), which names none. | |
| u64 | revision () const |
| Moves with every label laid out, given glyphs or let go: what a pass drawn from the store was drawn from. | |
| usize | size () const |
| std::map< u32, RetainedText > & | entries () |
The retained geometry of every label, by entity. Ordered: a frame submits in entity order, not in whatever order a hash left them.
Definition at line 49 of file RetainedText.hpp.
|
inline |
One batch of an entity begun with begin(). False when it was not begun or the batch is not whole quads.
Definition at line 67 of file RetainedText.hpp.
References esengine::RetainedTextBatch::blocks, esengine::Color, esengine::RetainedTextBatch::indices, esengine::RetainedTextBatch::mode, esengine::RetainedTextBatch::pageId, esengine::RETAINED_TEXT_BLOCK_QUADS, esengine::RETAINED_TEXT_QUAD_FLOATS, esengine::TEXT_VERTEX_FLOATS, and esengine::RetainedTextBatch::vertices.
|
inline |
Replaces any geometry the entity held, with none yet: batches follow through add().
Definition at line 52 of file RetainedText.hpp.
|
inline |
Definition at line 98 of file RetainedText.hpp.
|
inline |
Definition at line 103 of file RetainedText.hpp.
|
inline |
Definition at line 121 of file RetainedText.hpp.
|
inline |
Moves with every label laid out, given glyphs or let go: what a pass drawn from the store was drawn from.
Definition at line 119 of file RetainedText.hpp.
|
inline |
Definition at line 120 of file RetainedText.hpp.
|
inline |
Hands visit every label laid out, given glyphs or let go since the last call, and forgets them; false when they were all let go at once (clearAll), which names none.
Definition at line 111 of file RetainedText.hpp.