[−][src]Enum glium::vertex::VerticesSource
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(BufferAnySlice<'a>, &'a VertexFormat, bool)
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
Trait Implementations
impl<'a> Clone for VerticesSource<'a>
[src][+]
impl<'a, T> Into<VerticesSource<'a>> for &'a VertexBuffer<T> where
T: Copy,
[src][+]
T: Copy,
impl<'a, T> Into<VerticesSource<'a>> for VertexBufferSlice<'a, T> where
T: Copy,
[src][+]
T: Copy,
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<'a, T> MultiVerticesSource<'a> for T where
T: Into<VerticesSource<'a>>,
[src][+]
T: Into<VerticesSource<'a>>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,