2021-12-30 21:43:53 +00:00
|
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
|
|
|
|
2020-12-19 20:30:51 +00:00
|
|
|
// When compiling natively:
|
2020-07-23 10:01:48 +00:00
|
|
|
fn main() {
|
2022-02-01 11:27:39 +00:00
|
|
|
// Log to stdout (if you run with `RUST_LOG=debug`).
|
|
|
|
tracing_subscriber::fmt::init();
|
|
|
|
|
2021-05-08 08:14:56 +00:00
|
|
|
let options = eframe::NativeOptions {
|
|
|
|
// Let's show off that we support transparent windows
|
2022-01-17 13:32:16 +00:00
|
|
|
transparent: true,
|
2021-09-30 17:40:21 +00:00
|
|
|
drag_and_drop_support: true,
|
2021-05-08 08:14:56 +00:00
|
|
|
..Default::default()
|
|
|
|
};
|
2022-03-18 13:23:07 +00:00
|
|
|
eframe::run_native(
|
|
|
|
"egui demo app",
|
|
|
|
options,
|
|
|
|
Box::new(|cc| Box::new(egui_demo_lib::WrapApp::new(cc))),
|
|
|
|
);
|
2020-07-23 10:01:48 +00:00
|
|
|
}
|