egui_winit

Function create_window

source
pub fn create_window(
    egui_ctx: &Context,
    event_loop: &ActiveEventLoop,
    viewport_builder: &ViewportBuilder,
) -> Result<Window, OsError>
Expand description

Build and intitlaize a window.

Wrapper around create_winit_window_builder and apply_viewport_builder_to_window.

ยงErrors

Possible causes of error include denied permission, incompatible system, and lack of memory.