[][src]Trait nannou::draw::properties::IntoDrawn

pub trait IntoDrawn<S> where
    S: BaseFloat
{ type Vertices: Vertices<S>; type Indices: Indices; fn into_drawn(self, _: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>; }

Types that can be Drawn into a parent Draw geometry graph and mesh.

Associated Types

type Vertices: Vertices<S>

The iterator type yielding all unique vertices in the drawing.

The position of each yielded vertex should be relative to 0, 0, 0 as all displacement, scaling and rotation transformations will be performed via the geometry graph.

type Indices: Indices

The iterator type yielding all vertex indices, describing edges of the drawing.

Loading content...

Required methods

fn into_drawn(self, _: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>

Consume self and return its Drawn form.

Loading content...

Implementors

impl<S> IntoDrawn<S> for Ellipse<S> where
    S: BaseFloat
[src]

impl<S> IntoDrawn<S> for Line<S> where
    S: BaseFloat
[src]

type Vertices = VerticesFromRanges

type Indices = IndicesFromRange

impl<S> IntoDrawn<S> for Mesh<S> where
    S: BaseFloat
[src]

type Vertices = VerticesFromRanges

type Indices = IndicesFromRange

impl<S> IntoDrawn<S> for Path<S> where
    S: BaseFloat
[src]

type Vertices = VerticesFromRanges

type Indices = IndicesFromRange

impl<S> IntoDrawn<S> for Polygon<S> where
    S: BaseFloat
[src]

impl<S> IntoDrawn<S> for Quad<S> where
    S: BaseFloat
[src]

impl<S> IntoDrawn<S> for Rect<S> where
    S: BaseFloat
[src]

impl<S> IntoDrawn<S> for Text<S> where
    S: BaseFloat
[src]

type Vertices = VerticesFromRanges

type Indices = IndicesFromRange

impl<S> IntoDrawn<S> for Tri<S> where
    S: BaseFloat
[src]

Loading content...