Enum glium::index::IndicesSource
[−]
[src]
pub enum IndicesSource<'a> {
IndexBuffer {
buffer: BufferAnySlice<'a>,
data_type: IndexType,
primitives: PrimitiveType,
},
MultidrawArray {
buffer: BufferAnySlice<'a>,
primitives: PrimitiveType,
},
MultidrawElement {
commands: BufferAnySlice<'a>,
indices: BufferAnySlice<'a>,
data_type: IndexType,
primitives: PrimitiveType,
},
NoIndices {
primitives: PrimitiveType,
},
}Describes a source of indices used for drawing.
Variants
IndexBuffer | A buffer uploaded in video memory. Fields
| ||||||||
MultidrawArray | Use a multidraw indirect buffer without indices. Fields
| ||||||||
MultidrawElement | Use a multidraw indirect buffer with indices. Fields
| ||||||||
NoIndices | Don't use indices. Assemble primitives by using the order in which the vertices are in the vertices source. Fields
|
Methods
impl<'a> IndicesSource<'a>
fn get_primitives_type(&self) -> PrimitiveType
Returns the type of the primitives.