|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::shared_ptr< LayoutResult > MayaFlux::Portal::Text::create_layout | ( | std::string_view | text, |
| float | pen_x = 0.F, |
||
| float | pen_y = 0.F, |
||
| uint32_t | wrap_w = 0 |
||
| ) |
Lay out a UTF-8 string into screen-space glyph quads using the default atlas.
Each quad in the returned LayoutResult carries pixel-space position, atlas UV coordinates, and the Unicode codepoint that produced it. The caller may mutate the quads freely before passing them to rasterize_quads().
| text | UTF-8 encoded input string. |
| pen_x | Starting horizontal pen position in pixels. |
| pen_y | Starting vertical pen position in pixels (baseline). |
| wrap_w | Wrap boundary in pixels. Zero disables wrapping. |
Definition at line 52 of file Text.cpp.
References get_default_atlas(), and lay_out().
Here is the call graph for this function: