Function bevy_retrograde_epaint::tessellator::tessellate_shapes[][src]

pub fn tessellate_shapes(
    shapes: Vec<ClippedShape, Global>,
    options: TessellationOptions,
    tex_size: [usize; 2]
) -> Vec<ClippedMesh, Global>
Expand description

Turns Shape:s into sets of triangles.

The given shapes will be painted back-to-front (painters algorithm). They will be batched together by clip rectangle.

  • shapes: the shape to tessellate
  • options: tessellation quality
  • tex_size: size of the font texture (required to normalize glyph uv rectangles)

Returns

A list of clip rectangles with matching Mesh.