Function epaint::tessellator::tessellate_shapes [−][src]
pub fn tessellate_shapes(
shapes: Vec<ClippedShape>,
options: TessellationOptions,
tex_size: [usize; 2]
) -> Vec<ClippedMesh>
Expand description
Turns Shape
:s into sets of triangles.
The given shapes will tessellated in the same order as they are given. They will be batched together by clip rectangle.
shapes
: what to tessellateoptions
: tessellation qualitytex_size
: size of the font texture (required to normalize glyph uv rectangles)
The implementation uses a Tessellator
.
Returns
A list of clip rectangles with matching Mesh
.