summaryrefslogtreecommitdiffstats
path: root/gui/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/main.rs')
-rw-r--r--gui/src/main.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/gui/src/main.rs b/gui/src/main.rs
new file mode 100644
index 0000000..cf1c67d
--- /dev/null
+++ b/gui/src/main.rs
@@ -0,0 +1,25 @@
1//! Desktop frontend for zagan-bet.
2//!
3//! Phase 3 of `docs/GUI-PLAN.md`: the style spike. It owns the window and the
4//! roulette reference screen; the shared core and transport are wired in
5//! Phase 4.
6
7use zagan_bet_gui::app::ZaganApp;
8
9fn main() -> eframe::Result {
10 let options = eframe::NativeOptions {
11 viewport: eframe::egui::ViewportBuilder::default()
12 .with_title("Zagan-Bet")
13 .with_app_id("zagan-bet")
14 .with_inner_size([1440.0, 900.0])
15 .with_min_inner_size([1100.0, 720.0]),
16 renderer: eframe::Renderer::Glow,
17 ..Default::default()
18 };
19
20 eframe::run_native(
21 "Zagan-Bet",
22 options,
23 Box::new(|cc| Ok(Box::new(ZaganApp::new(cc)))),
24 )
25}