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]

[src]

The number of raw vertices contained within the mesh.

[src]

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

[src]

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

Important traits for &'a mut [u8]
[src]

The Mesh's vertex position channel.

Important traits for &'a mut [u8]
[src]

The Mesh's vertex indices channel.

Important traits for &'a mut [u8]
[src]

The Mesh's vertex colors channel.

Important traits for &'a mut [u8]
[src]

The Mesh's vertex texture coordinates channel.

[src]

Push the given vertex onto the inner channels.

[src]

Push the given index onto the inner Indices channel.

[src]

Extend the mesh channels with the given vertices.

[src]

Extend the Mesh indices channel with the given indices.

[src]

Extend the Mesh with the given vertices and indices.

[src]

Clear all vertices from the mesh.

[src]

Clear all indices from the mesh.

[src]

Clear all vertices and indices from the mesh.

Important traits for RawVertices<M>
[src]

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

Important traits for Vertices<M>
[src]

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

[src]

Produce an iterator yielding all triangles.

Important traits for RawVertices<M>
[src]

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

Important traits for Vertices<M>
[src]

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

[src]

Consume self and produce an iterator yielding all triangles.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

[src]

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

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

The resulting type after dereferencing.

[src]

Dereferences the value.

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

[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.

[src]

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.

[src]

Borrow the vertex channel from the mesh.

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

The channel type containing indices.

[src]

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.

[src]

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.

[src]

Borrow the texture coordinate channel from the mesh.

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

[src]

Push the given vertex onto the mesh. Read more

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

[src]

Push a new index onto the indices channel.

[src]

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

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

[src]

Clear all indices from the mesh.

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

[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