|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| Element & MayaFlux::Portal::Forma::Element::with_text | ( | std::string_view | text, |
| std::optional< Portal::Text::PressParams > | params, | ||
| Kinesis::AABB2D | region = { .min = glm::vec2(-1.F), .max = glm::vec2(1.F) } |
||
| ) |
Press text into a new GPU texture and bind it to the attached FormaBuffer.
The VKImage is retained internally for subsequent set_text() calls.
buffer must already be set and created with an additional_textures slot at index 0.
| text | UTF-8 string to composite. |
| params | PressParams (color, render_bounds, atlas, budget_h). Defaults apply when omitted. |
| region | NDC quad extent. Defaults to fullscreen. |
Definition at line 51 of file Element.cpp.
References buffer, MayaFlux::Portal::Text::press(), and texture.
Referenced by MayaFlux::Portal::Forma::Plot::place_label().
Here is the call graph for this function:
Here is the caller graph for this function: