Going in for egui

this has to work
This commit is contained in:
2024-09-15 14:32:59 -04:00
Unverified
parent 505236278c
commit aeb24f1cb4
7 changed files with 162 additions and 4 deletions

View File

@@ -1,3 +1,20 @@
fn main() {
println!("Hello, world!");
fn main() -> eframe::Result {
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
let native_options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default()
.with_inner_size([720.0, 500.0])
.with_min_inner_size([500.0, 300.0])
.with_icon(
// NOTE: Adding an icon is optional
eframe::icon_data::from_png_bytes(&include_bytes!("../assets/icon-256.png")[..])
.expect("Failed to load icon"),
),
..Default::default()
};
eframe::run_native(
"Realm",
native_options,
Box::new(|cc| Ok(Box::new(realm_client::app::TemplateApp::new(cc)))),
)
}