Skip to main content

run_native_ext

Function run_native_ext 

Source
pub fn run_native_ext(
    app_name: &str,
    native_options: NativeOptions,
    egui_ctx: Option<Context>,
    app_creator: AppCreator<'_>,
) -> Result
Expand description

Like run_native, but lets you supply a pre-existing egui::Context.

If egui_ctx is Some, that context will be used by eframe instead of creating a fresh one. If it is None, eframe creates a new context (same behavior as run_native).

ยงErrors

This function can fail if we fail to set up a graphics context.