Struct nannou::draw::mesh::Mesh[][src]

pub struct Mesh<S = DefaultScalar> { /* fields omitted */ }

The custom mesh type used internally by the Draw API.

Methods

impl<S> Mesh<S> where
    S: BaseNum
[src]

The number of raw vertices contained within the mesh.

The number of vertices that would be yielded by a Vertices iterator for the given mesh.

The number of triangles that would be yielded by a Triangles iterator for the given mesh.

Important traits for &'a [u8]

The Mesh's vertex position channel.

Important traits for &'a [u8]

The Mesh's vertex indices channel.

Important traits for &'a [u8]

The Mesh's vertex colors channel.

Important traits for &'a [u8]

The Mesh's vertex texture coordinates channel.

Push the given vertex onto the inner channels.

Push the given index onto the inner Indices channel.

Extend the mesh channels with the given vertices.

Extend the Mesh indices channel with the given indices.

Extend the Mesh with the given vertices and indices.

Clear all vertices from the mesh.

Clear all indices from the mesh.

Clear all vertices and indices from the mesh.

Important traits for RawVertices<M>

Produce an iterator yielding all raw (non-index-order) vertices.

Important traits for Vertices<M>

Produce an iterator yielding all vertices in the order specified via the vertex indices.

Produce an iterator yielding all triangles.

Important traits for RawVertices<M>

Consume self and produce an iterator yielding all raw (non-index_order) vertices.

Important traits for Vertices<M>

Consume self and produce an iterator yielding all vertices in index-order.

Consume self and produce an iterator yielding all triangles.

Trait Implementations

impl<S: Clone> Clone for Mesh<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for Mesh<S>
[src]

Formats the value using the given formatter. Read more

impl<S> Default for Mesh<S>
[src]

Returns the "default value" for a type. Read more

impl<S> Deref for Mesh<S>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<S> DerefMut for Mesh<S>
[src]

Mutably dereferences the value.

impl<S> GetVertex for Mesh<S> where
    MeshType<S>: GetVertex<Vertex = Vertex<S>>, 
[src]

The vertex type representing all channels of data within the mesh at a single index.

Create a vertex containing all channel properties for the given index.

impl<S> Points for Mesh<S> where
    S: BaseNum
[src]

The scalar value used for the vertex coordinates.

The vertex type used to represent the location of a vertex.

The channel type containing points.

Borrow the vertex channel from the mesh.

impl<S> Indices for Mesh<S>
[src]

The channel type containing indices.

Borrow the index channel from the mesh.

impl<S> Colors for Mesh<S>
[src]

The color type stored within the channel.

The channel type containing colors.

Borrow the color channel from the mesh.

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

The scalar value used for the texture coordinates.

The channel type containing texture coordinates.

Borrow the texture coordinate channel from the mesh.

impl<S> PushVertex<Vertex<S>> for Mesh<S>
[src]

Push the given vertex onto the mesh. Read more

impl<S> PushIndex for Mesh<S>
[src]

Push a new index onto the indices channel.

Extend the Mesh's Indices channel with the given indices.

impl<S> ClearIndices for Mesh<S>
[src]

Clear all indices from the mesh.

impl<S> ClearVertices for Mesh<S>
[src]

Clear all vertices from the mesh.

Auto Trait Implementations

impl<S> Send for Mesh<S> where
    S: Send

impl<S> Sync for Mesh<S> where
    S: Sync