pub fn draw(&self, mode: PrimitiveMode, range: Range<usize>) {
        unsafe {
            gl::BindVertexArray(self.array);
            gl::DrawArrays(
                mode as GLenum,
                range.start as GLint,
                (range.end - range.start) as GLsizei
            );
        }
    }
/// Draws the given type of primitive with the data in the graphics buffers bound to this vertex 
/// array. If you want to specify indices when drawing use [`draw_elements`] instead.
///
/// [`draw_elements`]: #method.draw_elements
Draws the given type of primitive with the data in the graphics buffers bound to this vertex
array. If you want to specify indices when drawing use [`draw_elements`] instead.


Draws the given type of primitive with the data in the graphics buffers bound to this vertex array . If you want to specify indices when drawing use [ ` draw_elements ` ] instead .
pub fn draw(&self, mode: PrimitiveMode, range: Range<usize>) {
        unsafe {
            gl::BindVertexArray(self.array);
            gl::DrawArrays(
                mode as GLenum,
                range.start as GLint,
                (range.end - range.start) as GLsizei
            );
        }
    }
pub fn draw ( & self , mode : PrimitiveMode , range : Range < usize > ) { unsafe { gl :: BindVertexArray ( self . array ) ; gl :: DrawArrays ( mode as GLenum , range . start as GLint , ( range . end - range . start ) as GLsizei ) ; } }
Draws the given type of primitive with the data in the graphics buffers bound to this vertex
array.
Draws the given type of primitive with the data in the graphics buffers bound to this vertex array .
&self
mode
PrimitiveMode
range
Range<usize>
&self
mode
PrimitiveMode
range
Range<usize>