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

pub struct Tessellator { /* fields omitted */ }

Converts Shapes into Mesh.

Implementations

impl Tessellator[src]

pub fn from_options(options: TessellationOptions) -> Self[src]

pub fn tessellate_shape(&mut self, fonts: &Fonts, shape: Shape, out: &mut Mesh)[src]

Tessellate a single Shape into a Mesh.

  • shape: the shape to tessellate
  • options: tessellation quality
  • fonts: font source when tessellating text
  • out: where the triangles are put
  • scratchpad_path: if you plan to run tessellate_shape many times, pass it a reference to the same Path to avoid excessive allocations.

pub fn tessellate_text(
    &mut self,
    fonts: &Fonts,
    pos: Pos2,
    galley: &Galley,
    text_style: TextStyle,
    color: Color32,
    fake_italics: bool,
    out: &mut Mesh
)
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.