egui/demo_glium/src/main.rs
Emil Ernerfeldt 5856cded95
refactor RunMode: move it from backend to the demo App (#23)
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.
2020-09-16 08:03:40 +02:00

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);
}