[][src]Trait nannou::mesh::Indices

pub trait Indices {
    type Index;
    type Indices: Channel<Element = Self::Index>;
    fn indices(&self) -> &Self::Indices;
}

Meshes that contain a channel of indices that describe the edges between points.

Associated Types

type Index

The type used to index into the vertex buffer.

type Indices: Channel<Element = Self::Index>

The channel type containing indices.

Loading content...

Required methods

fn indices(&self) -> &Self::Indices

Borrow the index channel from the mesh.

Loading content...

Implementations on Foreign Types

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

type Index = M::Index

type Indices = M::Indices

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

type Index = M::Index

type Indices = M::Indices

impl<'a, M> Indices for Ref<'a, M> where
    M: Indices
[src]

type Index = M::Index

type Indices = M::Indices

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

type Index = M::Index

type Indices = M::Indices

Loading content...

Implementors

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

type Index = M::Index

type Indices = M::Indices

impl<M, I> Indices for WithIndices<M, I> where
    I: Channel
[src]

type Index = I::Element

type Indices = I

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

type Index = M::Index

type Indices = M::Indices

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

type Index = M::Index

type Indices = M::Indices

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

type Index = u32

type Indices = Indices

Loading content...