[−][src]Enum glium::index::IndicesSource
Describes a source of indices used for drawing.
Variants
A buffer uploaded in video memory.
Fields of IndexBuffer
buffer: BufferAnySlice<'a>
The buffer.
data_type: IndexType
Type of indices in the buffer.
primitives: PrimitiveType
Type of primitives contained in the vertex source.
Use a multidraw indirect buffer without indices.
Fields of MultidrawArray
buffer: BufferAnySlice<'a>
The buffer.
primitives: PrimitiveType
Type of primitives contained in the vertex source.
Use a multidraw indirect buffer with indices.
Fields of MultidrawElement
commands: BufferAnySlice<'a>
The buffer of the commands.
indices: BufferAnySlice<'a>
The buffer of the indices.
data_type: IndexType
Type of indices in the buffer.
primitives: PrimitiveType
Type of primitives contained in the vertex source.
Don't use indices. Assemble primitives by using the order in which the vertices are in the vertices source.
Fields of NoIndices
primitives: PrimitiveType
Type of primitives contained in the vertex source.
Implementations
impl<'a> IndicesSource<'a>
[src]
pub fn get_primitives_type(&self) -> PrimitiveType
[src]
Returns the type of the primitives.
Trait Implementations
impl<'a> Clone for IndicesSource<'a>
[src]
fn clone(&self) -> IndicesSource<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, T> From<&'a IndexBuffer<T>> for IndicesSource<'a> where
T: Index,
[src]
T: Index,
fn from(buf: &'a IndexBuffer<T>) -> IndicesSource<'a>
[src]
impl<'a> From<&'a IndexBufferAny> for IndicesSource<'a>
[src]
fn from(buf: &'a IndexBufferAny) -> IndicesSource<'a>
[src]
impl<'a, 'b> From<&'b NoIndices> for IndicesSource<'a>
[src]
fn from(marker: &'b NoIndices) -> IndicesSource<'a>
[src]
impl<'a, 'r, T> From<&'r IndexBufferSlice<'a, T>> for IndicesSource<'a> where
T: Index,
[src]
T: Index,
fn from(buf: &'r IndexBufferSlice<'a, T>) -> IndicesSource<'a>
[src]
impl<'a, T> From<IndexBufferSlice<'a, T>> for IndicesSource<'a> where
T: Index,
[src]
T: Index,
fn from(buf: IndexBufferSlice<'a, T>) -> IndicesSource<'a>
[src]
impl<'a> From<NoIndices> for IndicesSource<'a>
[src]
fn from(marker: NoIndices) -> IndicesSource<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for IndicesSource<'a>
impl<'a> !Send for IndicesSource<'a>
impl<'a> !Sync for IndicesSource<'a>
impl<'a> Unpin for IndicesSource<'a>
impl<'a> !UnwindSafe for IndicesSource<'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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,