egui: eframe-app-creation-refactor

This commit is contained in:
Simon Gardling
2022-03-15 19:07:14 -04:00
parent 5e9dc18469
commit 5d5b959f0d
4 changed files with 14 additions and 19 deletions

View File

@@ -9,11 +9,12 @@ mod parsing;
// For running the program natively! (Because why not?)
#[cfg(not(target_arch = "wasm32"))]
fn main() {
let app = egui_app::MathApp::default();
let options = eframe::NativeOptions {
transparent: true,
drag_and_drop_support: true,
..Default::default()
};
eframe::run_native(Box::new(app), options);
eframe::run_native("(Yet-to-be-named) Graphing Software", options, |cc| {
Box::new(egui_app::MathApp::new(cc))
});
}