Enum nannou::ui::backend::glium::glium::vertex::VerticesSource[][src]

pub enum VerticesSource<'a> {
    VertexBuffer(BufferAnySlice<'a>, &'a Cow<'static, [(Cow<'static, str>, usize, AttributeType, bool)]>, bool),
    Marker {
        len: usize,
        per_instance: bool,
    },
}

Describes the source to use for the vertices when drawing.

Variants

A buffer uploaded in the video memory.

The second parameter is the number of vertices in the buffer.

The third parameter tells whether or not this buffer is "per instance" (true) or "per vertex" (false).

A marker indicating a "phantom list of attributes".

Fields of Marker

Number of attributes.

Whether or not this buffer is "per instance" (true) or "per vertex" (false).

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, T> Into<VerticesSource<'a>> for &'a VertexBuffer<T> where
    T: Copy
[src]

Performs the conversion.

impl<'a, T> Into<VerticesSource<'a>> for VertexBufferSlice<'a, T> where
    T: Copy
[src]

Performs the conversion.

impl<'a> Into<VerticesSource<'a>> for EmptyVertexAttributes
[src]

Performs the conversion.

impl<'a> Into<VerticesSource<'a>> for &'a VertexBufferAny
[src]

Performs the conversion.

impl<'a> Into<VerticesSource<'a>> for EmptyInstanceAttributes
[src]

Performs the conversion.

impl<'a> Into<VerticesSource<'a>> for PerInstance<'a>
[src]

Performs the conversion.

Auto Trait Implementations

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

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