[][src]Trait nannou::mesh::PushIndex

pub trait PushIndex {
    fn push_index(&mut self, index: usize);

    fn extend_indices<I>(&mut self, indices: I)
    where
        I: IntoIterator<Item = usize>
, { ... } }

Meshes that contain an Indices channel and can push new indices to it.

Required methods

fn push_index(&mut self, index: usize)

Push a new index onto the indices channel.

Loading content...

Provided methods

fn extend_indices<I>(&mut self, indices: I) where
    I: IntoIterator<Item = usize>, 

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

Loading content...

Implementations on Foreign Types

impl<'a, M> PushIndex for &'a mut M where
    M: PushIndex
[src]

impl<'a, M> PushIndex for RefMut<'a, M> where
    M: PushIndex
[src]

Loading content...

Implementors

impl<M> PushIndex for WithIndices<M, Vec<usize>>[src]

impl<M, C> PushIndex for WithColors<M, C> where
    M: PushIndex
[src]

impl<M, N> PushIndex for WithNormals<M, N> where
    M: PushIndex
[src]

impl<M, T, S> PushIndex for WithTexCoords<M, T, S> where
    M: PushIndex
[src]

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

Loading content...