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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user