pub fn with_data(primitive_mode: PrimitiveMode, vertices: &[T], indices: &[E]) -> IndexedVertexBuffer<T, E> {
        IndexedVertexBuffer {
            vertices: VertexBuffer::with_data(primitive_mode, vertices),
            indices:  PrimitiveBuffer::with_data(BufferTarget::ElementArray, indices),
        }
    }
/// Creates a new vertex buffer, storing the given vertices and indices on the GPU.
Creates a new vertex buffer, storing the given vertices and indices on the GPU.
Creates a new vertex buffer storing the given vertices and indices on the GPU .
pub fn with_data(primitive_mode: PrimitiveMode, vertices: &[T], indices: &[E]) -> IndexedVertexBuffer<T, E> {
        IndexedVertexBuffer {
            vertices: VertexBuffer::with_data(primitive_mode, vertices),
            indices:  PrimitiveBuffer::with_data(BufferTarget::ElementArray, indices),
        }
    }
pub fn with_data ( primitive_mode : PrimitiveMode , vertices : & [ T ] , indices : & [ E ] ) -> IndexedVertexBuffer < T , E > { IndexedVertexBuffer { vertices : VertexBuffer :: with_data ( primitive_mode , vertices ) , indices : PrimitiveBuffer :: with_data ( BufferTarget :: ElementArray , indices ) , } }
Creates a new vertex buffer, storing the given vertices and indices on the GPU.
Creates a new vertex buffer storing the given vertices and indices on the GPU .
primitive_mode
PrimitiveMode
vertices
&[T]
indices
&[E]
primitive_mode
PrimitiveMode
vertices
&[T]
indices
&[E]