|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::shared_ptr< Core::VKImage > MayaFlux::Portal::Text::press | ( | std::string_view | text, |
| glm::uvec2 | render_bounds, | ||
| const PressParams & | params = {} |
||
| ) |
Composite a UTF-8 string directly into a new GPU texture.
No TextBuffer, no quad geometry, no registration required. The returned VKImage is RGBA8, shader-read layout, ready for binding into a FormaBuffer or any other descriptor slot.
| text | UTF-8 string to composite. |
| render_bounds | Texture dimensions and wrap boundary in pixels. |
| params | atlas, color, budget_h. render_bounds field ignored. |
Definition at line 263 of file InkPress.cpp.
References MayaFlux::Journal::API, MayaFlux::Portal::Text::GlyphAtlas::ascender(), MayaFlux::Portal::Text::PressParams::atlas, MayaFlux::Portal::Text::PressParams::color, MayaFlux::Portal::Graphics::get_texture_manager(), image, MayaFlux::Portal::Text::GlyphAtlas::line_height(), MF_DEBUG, MF_WARN, pixels, MayaFlux::Journal::Portal, and MayaFlux::Portal::Graphics::RGBA8.
Here is the call graph for this function: