mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
No typescript. Just one index.html + wasm.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
extern crate lazy_static;
|
||||
extern crate serde_json;
|
||||
extern crate wasm_bindgen;
|
||||
// extern crate web_sys;
|
||||
|
||||
extern crate emgui;
|
||||
|
||||
@@ -16,32 +15,6 @@ use wasm_bindgen::prelude::*;
|
||||
mod app;
|
||||
mod webgl;
|
||||
|
||||
// #[wasm_bindgen]
|
||||
// pub fn show_gui(raw_input_json: &str) -> String {
|
||||
// // TODO: faster interface than JSON
|
||||
// let raw_input: RawInput = serde_json::from_str(raw_input_json).unwrap();
|
||||
|
||||
// lazy_static::lazy_static! {
|
||||
// static ref APP: Mutex<app::App> = Default::default();
|
||||
// static ref EMGUI: Mutex<Emgui> = Default::default();
|
||||
// }
|
||||
|
||||
// let mut emgui = EMGUI.lock().unwrap();
|
||||
// emgui.new_frame(raw_input);
|
||||
|
||||
// use crate::app::GuiSettings;
|
||||
// APP.lock().unwrap().show_gui(&mut emgui.layout);
|
||||
|
||||
// let mut style = emgui.style.clone();
|
||||
// emgui.layout.foldable("Style", |gui| {
|
||||
// style.show_gui(gui);
|
||||
// });
|
||||
// emgui.style = style;
|
||||
|
||||
// let commands = emgui.paint();
|
||||
// serde_json::to_string(&commands).unwrap()
|
||||
// }
|
||||
|
||||
fn font() -> Font {
|
||||
Font::new(20) // TODO: don't create this multiple times
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user