1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

epi/eframe: move options out of trait App into new NativeOptions

This commit is contained in:
Emil Ernerfeldt
2021-05-08 10:14:56 +02:00
parent 5e46bd404c
commit 7374ed9d00
8 changed files with 57 additions and 40 deletions

View File

@@ -41,5 +41,6 @@ impl epi::App for MyApp {
}
fn main() {
eframe::run_native(Box::new(MyApp::default()));
let options = eframe::NativeOptions::default();
eframe::run_native(Box::new(MyApp::default()), options);
}