1
0
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:
Emil Ernerfeldt
2020-12-29 15:57:13 +01:00
parent d7459bc13d
commit 84414e62a3
14 changed files with 118 additions and 32 deletions

View File

@@ -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)?;

View File

@@ -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::*;