Going in for egui
this has to work
This commit is contained in:
@@ -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)))),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user