[][src]Trait nannou::draw::primitive::path::TessellationOptions

pub trait TessellationOptions {
    type Tessellator;
    type VertexInput;
    fn tessellator(tessellators: Tessellators) -> &mut Self::Tessellator;
fn tessellate<I>(
        &self,
        tessellator: &mut Self::Tessellator,
        events: I,
        output: &mut dyn GeometryBuilder<Self::VertexInput>
    ) -> TessellationResult
    where
        I: IntoIterator<Item = PathEvent>
; }

A set of path tessellation options (FillOptions or StrokeOptions).

Associated Types

type Tessellator

The tessellator for which the options are built.

type VertexInput

The input vertex type for the geometry builder.

Loading content...

Required methods

fn tessellator(tessellators: Tessellators) -> &mut Self::Tessellator

Initialise the tessellator.

fn tessellate<I>(
    &self,
    tessellator: &mut Self::Tessellator,
    events: I,
    output: &mut dyn GeometryBuilder<Self::VertexInput>
) -> TessellationResult where
    I: IntoIterator<Item = PathEvent>, 

Tessellate the given path events into the given output.

Loading content...

Implementations on Foreign Types

impl TessellationOptions for FillOptions[src]

type Tessellator = FillTessellator

type VertexInput = FillVertex

impl TessellationOptions for StrokeOptions[src]

type Tessellator = StrokeTessellator

type VertexInput = StrokeVertex

Loading content...

Implementors

Loading content...