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

pub trait PushIndex {
    type Index;
    fn push_index(&mut self, index: Self::Index);

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

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

Associated Types

type Index

The inner index type.

Loading content...

Required methods

fn push_index(&mut self, index: Self::Index)

Push a new index onto the indices channel.

Loading content...

Provided methods

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

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]

type Index = M::Index

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

type Index = M::Index

Loading content...

Implementors

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

type Index = M::Index

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

type Index = I

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

type Index = M::Index

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

type Index = M::Index

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

type Index = u32

Loading content...