Struct glin::vao::simple_vao::Data [−][src]
pub struct Data<'a, T: 'a> { pub vertices: &'a dyn AsRef<[T]>, pub indices: &'a [IndexT], pub mode: GLenum, }
Specifies the data for a SimpleVao
Allows to create a SimpleVao from data that implements VertexFormat, a draw mode and a slice of indices which can be empty
Fields
vertices: &'a dyn AsRef<[T]>
indices: &'a [IndexT]
mode: GLenum