pub fn draw(&mut self) {
        self.draw_vbo.clear();
        self.draw_vbo.put(0, &self.draw_data);
        self.draw_data.clear();

        self.shader.bind();
        self.draw_vbo.draw();
        self.font.draw();
    }
/// Shows all components added since the last call to `draw`. This function update the matrix
/// buffers and binds new shaders. No special opengl state is required to be set when calling
/// this function. Note that this function does not necessarily reset the state it changes.
Shows all components added since the last call to `draw`. This function update the matrix
buffers and binds new shaders. No special opengl state is required to be set when calling
this function. Note that this function does not necessarily reset the state it changes.
Shows all components added since the last call to ` draw ` . This function update the matrix buffers and binds new shaders . No special opengl state is required to be set when calling this function . Note that this function does not necessarily reset the state it changes .
pub fn draw(&mut self) {
        self.draw_vbo.clear();
        self.draw_vbo.put(0, &self.draw_data);
        self.draw_data.clear();
        self.shader.bind();
        self.draw_vbo.draw();
        self.font.draw();
    }
pub fn draw ( & mut self ) { self . draw_vbo . clear ( ) ; self . draw_vbo . put ( 0 , & self . draw_data ) ; self . draw_data . clear ( ) ; self . shader . bind ( ) ; self . draw_vbo . draw ( ) ; self . font . draw ( ) ; }
Shows all components added since the last call to `draw`.
Shows all components added since the last call to ` draw ` .
&mut self
&mut self