
This simplifies the egui_glium and egui_web backends substantially, reduces the scope of RunMode to a single file, and removes duplicated code. Basically: this is how I should have written it from the beginning.
11 lines
347 B
Rust
11 lines
347 B
Rust
#![deny(warnings)]
|
|
#![warn(clippy::all)]
|
|
|
|
use egui_glium::storage::FileStorage;
|
|
|
|
fn main() {
|
|
let title = "Egui glium demo";
|
|
let storage = FileStorage::from_path(".egui_demo_glium.json".into());
|
|
let app: egui::DemoApp = egui::app::get_value(&storage, egui::app::APP_KEY).unwrap_or_default();
|
|
egui_glium::run(title, storage, app);
|
|
}
|