pub fn run(mut self) -> Result<()> {
        self.init()?;
        while !self.window_surface.window.should_close() {
            for (_, event) in self.window_surface.poll_events() {
                self.handle_event(event)?;
            }
            self.update();
            self.graphics.render(&self.window_surface)?;
        }
        Ok(())
    }
/// Run the application, blocks until the main event loop exits.
Run the application, blocks until the main event loop exits.
Run the application blocks until the main event loop exits .
pub fn run(mut self) -> Result<()> {
        self.init()?;
        while !self.window_surface.window.should_close() {
            for (_, event) in self.window_surface.poll_events() {
                self.handle_event(event)?;
            }
            self.update();
            self.graphics.render(&self.window_surface)?;
        }
        Ok(())
    }
pub fn run ( mut self ) -> Result < ( ) > { self . init ( ) ? ; while ! self . window_surface . window . should_close ( ) { for ( _ , event ) in self . window_surface . poll_events ( ) { self . handle_event ( event ) ? ; } self . update ( ) ; self . graphics . render ( & self . window_surface ) ? ; } Ok ( ( ) ) }
Run the application, blocks until the main event loop exits.
Run the application blocks until the main event loop exits .
mut self