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

pub enum VerticesSource<'a> {
    VertexBuffer(BufferAnySlice<'a>, &'a VertexFormatbool),
    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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Builds the VerticesSource.