Trait nannou::mesh::Indices

source ·
pub trait Indices {
    type Index;
    type Indices: Channel<Element = Self::Index>;

    // Required method
    fn indices(&self) -> &Self::Indices;
}
Expand description

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

Required Associated Types§

source

type Index

The type used to index into the vertex buffer.

source

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

The channel type containing indices.

Required Methods§

source

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

Borrow the index channel from the mesh.

Implementations on Foreign Types§

source§

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

§

type Index = <M as Indices>::Index

§

type Indices = <M as Indices>::Indices

source§

fn indices(&self) -> &<&'a M as Indices>::Indices

source§

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

§

type Index = <M as Indices>::Index

§

type Indices = <M as Indices>::Indices

source§

fn indices(&self) -> &<&'a mut M as Indices>::Indices

source§

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

§

type Index = <M as Indices>::Index

§

type Indices = <M as Indices>::Indices

source§

fn indices(&self) -> &<Ref<'a, M> as Indices>::Indices

source§

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

§

type Index = <M as Indices>::Index

§

type Indices = <M as Indices>::Indices

source§

fn indices(&self) -> &<RefMut<'a, M> as Indices>::Indices

Implementors§

source§

impl Indices for Mesh

§

type Index = u32

§

type Indices = Vec<u32>

source§

impl<M, C> Indices for WithColors<M, C>
where M: Indices,

§

type Index = <M as Indices>::Index

§

type Indices = <M as Indices>::Indices

source§

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

§

type Index = <I as Channel>::Element

§

type Indices = I

source§

impl<M, N> Indices for WithNormals<M, N>
where M: Indices,

§

type Index = <M as Indices>::Index

§

type Indices = <M as Indices>::Indices

source§

impl<M, T> Indices for WithTexCoords<M, T>
where M: Indices,

§

type Index = <M as Indices>::Index

§

type Indices = <M as Indices>::Indices