Trait nannou::draw::properties::IntoDrawn [−][src]
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.
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<CappedVertices<S>, S>; type Indices = TriangleIndices;impl<S> IntoDrawn<S> for Vertexless where
S: BaseFloat, type Vertices = Empty<Vertex<S>>; type Indices = Empty<usize>;impl<S> IntoDrawn<S> for Mesh<S> where
S: BaseFloat, type Vertices = VerticesFromRanges; type Indices = IndicesFromRange;impl<S> IntoDrawn<S> for Pointless where
S: BaseFloat, type Vertices = Empty<Vertex<S>>; type Indices = Empty<usize>;impl<S> IntoDrawn<S> for Polygon<Fill, S> where
S: BaseFloat, type Vertices = VerticesFromRanges; type Indices = TriangleIndices;impl<S> IntoDrawn<S> for Polygon<PerVertex, S> where
S: BaseFloat, type Vertices = VerticesFromRanges; type Indices = TriangleIndices;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>;