|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::vector< Kakshya::MeshVertex > MayaFlux::Portal::Text::glyph_vertices | ( | std::span< const GlyphQuad > | quads, |
| glm::vec4 | color, | ||
| std::span< const StyleSpan > | spans, | ||
| const GlyphMap & | map, | ||
| uint32_t | slot | ||
| ) |
Triangle list vertices for glyph quads, six per quad.
Positions come from map, UVs from the quads, and colour from the last entry of spans whose byte range holds the quad's byte_offset, else color. Vertex colour carries no alpha, so only rgb is used. Every vertex's weight is coverage_weight(slot).
| quads | Quads from lay_out(). |
| color | Colour of quads no span covers. |
| spans | Optional per-byte-range colours, offsets into the laid out text. |
| map | Layout pixels to output space. |
| slot | Atlas image slot, see coverage_weight(). |
Definition at line 14 of file GlyphMesh.cpp.
References color, coverage_weight(), out, q, and weight.
Referenced by MayaFlux::Portal::Text::TextRun::vertices().
Here is the call graph for this function:
Here is the caller graph for this function: