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

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

VertexBuffer(BufferAnySlice<'a>, &'a VertexFormatbool)

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 of Marker

len: usize

Number of attributes.

per_instance: bool

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

Trait Implementations

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

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

impl<'a> Unpin for VerticesSource<'a>

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

type Iterator = IntoIter<VerticesSource<'a>>

Iterator that enumerates each source.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.