Basic window and wasm support

This commit is contained in:
Guilherme Werner
2024-02-16 19:23:56 -03:00
parent 47f2244d1d
commit feae6c0d9d
6 changed files with 112 additions and 2 deletions

26
examples/index.html Normal file
View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Renderer</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
canvas {
background-color: black;
}
</style>
</head>
<body id="wasm-example">
<script type="module">
import init from "../package/renderer.js";
init().then(() => {
console.log("WASM Loaded");
});
</script>
</body>
</html>