Enum glium::vertex::VerticesSource [] [src]

pub enum VerticesSource<'a> {
    VertexBuffer(BufferAnySlice<'a>, &'a VertexFormat, bool),
    Marker {
        len: usize,
        per_instance: bool,
    },
}

Describes the source to use for the vertices when drawing.

Variants

VertexBuffer

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).

Marker

A marker indicating a "phantom list of attributes".

Fields

len

Number of attributes.

per_instance

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

Trait Implementations

impl<'a> IntoVerticesSource<'a> for VerticesSource<'a>

fn into_vertices_source(self) -> VerticesSource<'a>

Derived Implementations

impl<'a> Clone for VerticesSource<'a>

fn clone(&self) -> VerticesSource<'a>

fn clone_from(&mut self, source: &Self)