waasm compilatiion lib setup
This commit is contained in:
16
index.html
16
index.html
@ -1,17 +1,13 @@
|
||||
<!doctype html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>WebGL Demo</title>
|
||||
<script
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/gl-matrix/2.8.1/gl-matrix-min.js"
|
||||
integrity="sha512-zhHQR0/H5SEBL3Wn6yYSaTTZej12z0hVZKOv3TwCUXT1z5qeqGcXJLLrbERYRScEDDpYIJhPC1fk31gqR783iQ=="
|
||||
crossorigin="anonymous"
|
||||
defer></script>
|
||||
<script src="webgl-demo.js" type="module"></script>
|
||||
<meta charset="utf-8" />
|
||||
<title>Yew App</title>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="glcanvas" width="640" height="480"></canvas>
|
||||
<script type="module">
|
||||
import init from "yew-wasm/pkg/yew-wasm.js";
|
||||
init();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user