|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::Portal::Text::ink_quads | ( | const std::shared_ptr< Buffers::TextBuffer > & | target, |
| std::span< const GlyphQuad > | quads, | ||
| glm::vec4 | color | ||
| ) |
Rasterize a mutated quad span into an existing TextBuffer.
Clears the buffer's pixel region, rasterizes quads via rasterize_quads(), and marks the buffer dirty for GPU upload. The scratch pixel buffer is thread-local and reused across calls, so no heap allocation occurs after the first call at a given buffer size.
Typical usage:
| target | TextBuffer to write into. Dimensions are read from the buffer. |
| quads | Quads produced by create_layout(), optionally mutated by the caller. |
| color | RGBA glyph color in [0, 1]. |
Definition at line 203 of file InkPress.cpp.
References MayaFlux::Journal::API, color, MF_ERROR, pixels, MayaFlux::Journal::Portal, and rasterize_quads().
Here is the call graph for this function: