// Our actual logic! Not much to see for this example
Our actual logic. Not much to see for this example
Our actual logic . Not much to see for this example
async fn app(_window: Window, _gfx: Graphics, mut input: Input) -> Result<()> {
    loop {
        while let Some(_) = input.next_event().await {
            // Normally we'd do some processing here
        }
        // And then we'd do updates and drawing here
        // When this loop ends, the window will close and the application will stop
        // If the window is closed, our application will receive a close event and terminate also
    }
}
async fn app ( _window : Window , _gfx : Graphics , mut input : Input ) -> Result < ( ) > { loop { while let Some ( _ ) = input . next_event ( ) . await { // Normally we'd do some processing here } // And then we'd do updates and drawing here // When this loop ends, the window will close and the application will stop // If the window is closed, our application will receive a close event and terminate also } }
Our actual logic!
Our actual logic!
_window
Window
_gfx
Graphics
input
Input