mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Add new crate eframe which wraps egui, epi, egui_web and egui_glium
This commit is contained in:
@@ -219,7 +219,7 @@ impl AppRunner {
|
||||
}
|
||||
|
||||
/// Install event listeners to register different input events
|
||||
/// and starts running the given app.
|
||||
/// and start running the given app.
|
||||
pub fn start(canvas_id: &str, app: Box<dyn epi::App>) -> Result<AppRunnerRef, JsValue> {
|
||||
let backend = WebBackend::new(canvas_id)?;
|
||||
let runner = AppRunner::new(backend, app)?;
|
||||
|
||||
@@ -8,6 +8,9 @@ pub mod webgl;
|
||||
|
||||
pub use backend::*;
|
||||
|
||||
pub use wasm_bindgen;
|
||||
pub use web_sys;
|
||||
|
||||
use egui::mutex::Mutex;
|
||||
use std::sync::Arc;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
Reference in New Issue
Block a user