1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -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

@@ -8,5 +8,10 @@
// When compiling natively:
fn main() {
let app = egui_demo_lib::WrapApp::default();
eframe::run_native(Box::new(app));
let options = eframe::NativeOptions {
// Let's show off that we support transparent windows
transparent: true,
..Default::default()
};
eframe::run_native(Box::new(app), options);
}