pub fn draw(&self) {
        unsafe {
            gl::BindVertexArray(self.vertices.vao);
            gl::DrawElements(
                self.vertices.primitive_mode as GLenum,
                (self.indices.len() * E::primitives()) as GLsizei,
                E::Primitive::GL_ENUM,
                ptr::null(),
            );
        }
    }
/// Draws the contents of this vertex buffer with the primitive mode specified
/// at construction and the index/element buffer.
Draws the contents of this vertex buffer with the primitive mode specified
at construction and the index/element buffer.
Draws the contents of this vertex buffer with the primitive mode specified at construction and the index / element buffer .
pub fn draw(&self) {
        unsafe {
            gl::BindVertexArray(self.vertices.vao);
            gl::DrawElements(
                self.vertices.primitive_mode as GLenum,
                (self.indices.len() * E::primitives()) as GLsizei,
                E::Primitive::GL_ENUM,
                ptr::null(),
            );
        }
    }
pub fn draw ( & self ) { unsafe { gl :: BindVertexArray ( self . vertices . vao ) ; gl :: DrawElements ( self . vertices . primitive_mode as GLenum , ( self . indices . len ( ) * E :: primitives ( ) ) as GLsizei , E :: Primitive :: GL_ENUM , ptr :: null ( ) , ) ; } }
Draws the contents of this vertex buffer with the primitive mode specified
at construction and the index/element buffer.
Draws the contents of this vertex buffer with the primitive mode specified at construction and the index / element buffer .
&self
&self