21 lines
616 B
Rust
21 lines
616 B
Rust
//! Demo app for egui
|
|
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
|
|
|
// When compiling natively:
|
|
fn main() {
|
|
// Log to stdout (if you run with `RUST_LOG=debug`).
|
|
tracing_subscriber::fmt::init();
|
|
|
|
let options = eframe::NativeOptions {
|
|
// Let's show off that we support transparent windows
|
|
transparent: true,
|
|
drag_and_drop_support: true,
|
|
..Default::default()
|
|
};
|
|
eframe::run_native(
|
|
"egui demo app",
|
|
options,
|
|
Box::new(|cc| Box::new(egui_demo_lib::WrapApp::new(cc))),
|
|
);
|
|
}
|