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
type Vertices: IntoIterator<Item = Vertex<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: IntoIterator<Item = usize>
The iterator type yielding all vertex indices, describing edges of the drawing.
Required Methods
fn into_drawn(self, _: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
Consume self
and return its Drawn form.
Implementors
impl<S> IntoDrawn<S> for Ellipse<S> where
S: BaseFloat, type Vertices = IterFromPoint2s<TriangleVertices<S>, S>; type Indices = TriangleIndices;impl<S> IntoDrawn<S> for Line<S> where
S: BaseFloat, type Vertices = IterFromPoint2s<Vertices<S>, S>; type Indices = Cloned<Iter<'static, usize>>;impl<S> IntoDrawn<S> for Quad<S> where
S: BaseFloat, type Vertices = IterFromPoints<Vertices<Point3<S>>, S>; type Indices = Cloned<Iter<'static, usize>>;impl<S> IntoDrawn<S> for Rect<S> where
S: BaseFloat, type Vertices = IterFromPoint2s<Vertices<Point2<S>>, S>; type Indices = Cloned<Iter<'static, usize>>;impl<S> IntoDrawn<S> for Tri<S> where
S: BaseFloat, type Vertices = IterFromPoints<Vertices<Point3<S>>, S>; type Indices = Range<usize>;