mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Merge example_web into egui_demo_lib
This commit is contained in:
@@ -12,6 +12,6 @@ use eframe::wasm_bindgen::{self, prelude::*};
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
#[wasm_bindgen]
|
||||
pub fn start(canvas_id: &str) -> Result<(), wasm_bindgen::JsValue> {
|
||||
let app = egui_demo_lib::DemoApp::default();
|
||||
let app = egui_demo_lib::WrapApp::default();
|
||||
eframe::start_web(canvas_id, Box::new(app))
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
|
||||
// When compiling natively:
|
||||
fn main() {
|
||||
let app = egui_demo_lib::DemoApp::default();
|
||||
let app = egui_demo_lib::WrapApp::default();
|
||||
eframe::run_native(Box::new(app));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user