Update examples

- Updates deps
- Some README updates considering the Winit backend based on
  android-activity has been merged upstream
- runs cargo fmt over examples
- Top-level Cargo.toml simply excludes "examples" instead of
  listing each sub-directory separately
This commit is contained in:
Robert Bragg
2022-11-10 19:27:25 +00:00
parent c75f33a81e
commit 649b65c0c0
26 changed files with 795 additions and 1082 deletions
+6 -2
View File
@@ -6,7 +6,7 @@ use winit::platform::android::activity::AndroidApp;
#[derive(Default)]
struct DemoApp {
demo_windows: egui_demo_lib::DemoWindows
demo_windows: egui_demo_lib::DemoWindows,
}
impl eframe::App for DemoApp {
@@ -17,7 +17,11 @@ impl eframe::App for DemoApp {
fn _main(mut options: NativeOptions) {
options.renderer = Renderer::Wgpu;
eframe::run_native("My egui App", options, Box::new(|_cc| Box::new(DemoApp::default())));
eframe::run_native(
"My egui App",
options,
Box::new(|_cc| Box::new(DemoApp::default())),
);
}
#[cfg(target_os = "android")]