[−][src]Function egui::paint::tessellator::tessellate_paint_commands
pub fn tessellate_paint_commands(
commands: Vec<(Rect, PaintCmd)>,
options: TesselationOptions,
fonts: &Fonts
) -> Vec<(Rect, Triangles)>
Turns PaintCmd
:s into sets of triangles.
The given commands will be painted back-to-front (painters algorithm). They will be batched together by clip rectangle.
commands
: the command to tesselateoptions
: tesselation qualityfonts
: font source when tessellating text
Returns
A list of clip rectangles with matching Triangles
.