pub fn run_event_loop() -> Result<(), PlatformError>
Expand description
Enters the main event loop. This is necessary in order to receive
events from the windowing system for rendering to the screen
and reacting to user input.
This function will run until the last window is closed or until
quit_event_loop()
is called.
See also run_event_loop_until_quit()
to keep the event loop running until
quit_event_loop()
is called, even if all windows are closed.