Enum nannou::ui::backend::glium::glium::index::IndicesSource[][src]

pub enum IndicesSource<'a> {
    IndexBuffer {
        buffer: BufferAnySlice<'a>,
        data_type: IndexType,
        primitives: PrimitiveType,
    },
    MultidrawArray {
        buffer: BufferAnySlice<'a>,
        primitives: PrimitiveType,
    },
    MultidrawElement {
        commands: BufferAnySlice<'a>,
        indices: BufferAnySlice<'a>,
        data_type: IndexType,
        primitives: PrimitiveType,
    },
    NoIndices {
        primitives: PrimitiveType,
    },
}

Describes a source of indices used for drawing.

Variants

A buffer uploaded in video memory.

Fields of IndexBuffer

The buffer.

Type of indices in the buffer.

Type of primitives contained in the vertex source.

Use a multidraw indirect buffer without indices.

Fields of MultidrawArray

The buffer.

Type of primitives contained in the vertex source.

Use a multidraw indirect buffer with indices.

Fields of MultidrawElement

The buffer of the commands.

The buffer of the indices.

Type of indices in the buffer.

Type of primitives contained in the vertex source.

Don't use indices. Assemble primitives by using the order in which the vertices are in the vertices source.

Fields of NoIndices

Type of primitives contained in the vertex source.

Methods

impl<'a> IndicesSource<'a>
[src]

Returns the type of the primitives.

Trait Implementations

impl<'a> Clone for IndicesSource<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> From<&'a IndexBufferAny> for IndicesSource<'a>
[src]

Performs the conversion.

impl<'a, T> From<&'a IndexBuffer<T>> for IndicesSource<'a> where
    T: Index
[src]

Performs the conversion.

impl<'a, 'r, T> From<&'r IndexBufferSlice<'a, T>> for IndicesSource<'a> where
    T: Index
[src]

Performs the conversion.

impl<'a, 'b> From<&'b NoIndices> for IndicesSource<'a>
[src]

Performs the conversion.

impl<'a, T> From<IndexBufferSlice<'a, T>> for IndicesSource<'a> where
    T: Index
[src]

Performs the conversion.

impl<'a> From<NoIndices> for IndicesSource<'a>
[src]

Performs the conversion.

Auto Trait Implementations

impl<'a> !Send for IndicesSource<'a>

impl<'a> !Sync for IndicesSource<'a>