Factored out crates for web version
This commit is contained in:
10
mandelia_native/Cargo.toml
Normal file
10
mandelia_native/Cargo.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "mandelia_native"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
mandelia_ui = { path = "../mandelia_ui" }
|
||||
eframe = { version = "0.31", features = ["wayland", "glow"] }
|
||||
egui = "0.31"
|
||||
|
||||
17
mandelia_native/src/main.rs
Normal file
17
mandelia_native/src/main.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
fn main() -> eframe::Result {
|
||||
// mandelia::main()
|
||||
|
||||
let options = eframe::NativeOptions {
|
||||
..eframe::NativeOptions::default()
|
||||
};
|
||||
|
||||
eframe::run_native(
|
||||
"Mandelia",
|
||||
options,
|
||||
Box::new(|cc| {
|
||||
Ok(Box::new(mandelia_ui::App::new(cc)))
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
// this is backend-independent
|
||||
Reference in New Issue
Block a user