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

pub trait IntoDrawn<S> where
    S: BaseFloat
{ type Vertices: IntoIterator<Item = Vertex<S>>; type Indices: IntoIterator<Item = usize>; 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

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.

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

Required Methods

Consume self and return its Drawn form.

Implementors