[−][src]Trait nannou::draw::properties::IntoDrawn
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,
[src]
S: BaseFloat,
type Vertices = VerticesChain<VerticesFromRanges, VerticesFromRanges>
type Indices = IndicesChain<IndicesFromRange, IndicesFromRange>
fn into_drawn(self, draw: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
[src]
impl<S> IntoDrawn<S> for Line<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Vertices = VerticesFromRanges
type Indices = IndicesFromRange
fn into_drawn(self, draw: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
[src]
impl<S> IntoDrawn<S> for Mesh<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Vertices = VerticesFromRanges
type Indices = IndicesFromRange
fn into_drawn(self, _draw: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
[src]
impl<S> IntoDrawn<S> for Path<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Vertices = VerticesFromRanges
type Indices = IndicesFromRange
fn into_drawn(self, draw: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
[src]
impl<S> IntoDrawn<S> for Polygon<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Vertices = VerticesChain<VerticesFromRanges, VerticesFromRanges>
type Indices = IndicesChain<IndicesFromRange, IndicesFromRange>
fn into_drawn(self, draw: Draw<S>) -> DrawnPolygon<S>
[src]
impl<S> IntoDrawn<S> for Quad<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Vertices = VerticesChain<VerticesFromRanges, VerticesFromRanges>
type Indices = IndicesChain<IndicesFromRange, IndicesFromRange>
fn into_drawn(self, draw: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
[src]
impl<S> IntoDrawn<S> for Rect<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Vertices = VerticesChain<VerticesFromRanges, VerticesFromRanges>
type Indices = IndicesChain<IndicesFromRange, IndicesFromRange>
fn into_drawn(self, draw: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
[src]
impl<S> IntoDrawn<S> for Text<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Vertices = VerticesFromRanges
type Indices = IndicesFromRange
fn into_drawn(self, draw: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
[src]
impl<S> IntoDrawn<S> for Tri<S> where
S: BaseFloat,
[src]
S: BaseFloat,