1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

[refactor] rename 'example' to 'demo', and add simple example_glium

This commit is contained in:
Emil Ernerfeldt
2020-07-23 12:01:48 +02:00
parent bf19eb2ec5
commit 61cdec8fca
20 changed files with 235 additions and 148 deletions

View File

@@ -45,13 +45,13 @@
</script>
<!-- this is the JS generated by the `wasm-bindgen` CLI tool -->
<script src="example_wasm.js"></script>
<script src="demo_web.js"></script>
<script>
// We'll defer our execution until the wasm is ready to go.
// Here we tell bindgen the path to the wasm file so it can start
// initialization and return to us a promise when it's done.
wasm_bindgen("./example_wasm_bg.wasm")
wasm_bindgen("./demo_web_bg.wasm")
.then(on_wasm_loaded)["catch"](console.error);
function on_wasm_loaded() {