Function CE::Rendering::Submission::resolve_text(const CE::Text::Rendering::Generation&, const DrawStyle2D&, const Context2D&)
Defined in File draw2d.h
Function Documentation
-
std::vector<DrawPacket2D> CE::Rendering::Submission::resolve_text(const CE::Text::Rendering::Generation &text, const DrawStyle2D &style, const Context2D &context)
Declaration:
[[nodiscard]]Resolve an uploaded Unicode text generation into ordered glyph draw packets.
CPU-only resolution uses stable inputs and performs no font discovery, layout, rasterization or upload. Invalid image keys/materials/ranges reject the complete result without publishing frame packets; allocation failures propagate.
- Parameters:
text – Immutable generation whose page resources are retained by the packets.
style – Copied draw values; glyph offsets are scaled and then transformed by its model matrix.
context – Pass values; image must supply a nonempty page-image key absent from style.parameters.
- Returns:
Owned packets in authored glyph order, empty when there are no glyph draws; native use requires the original live resource domain.