Struct epaint::tessellator::Tessellator[][src]

pub struct Tessellator { /* fields omitted */ }
Expand description

Converts Shapes into triangles (Mesh).

For performance reasons it is smart to reuse the same Tessellator.

Se also tessellate_shapes, a convenient wrapper around Tessellator.

Implementations

Create a new Tessellator.

Tessellate a single Shape into a Mesh.

  • tex_size: size of the font texture (required to normalize glyph uv rectangles).
  • shape: the shape to tessellate.
  • out: triangles are appended to this.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.