Made emscripten work a bit better

This commit is contained in:
2023-11-01 10:42:51 -05:00
parent 8ca8358aa5
commit 4315a7e847
33 changed files with 548 additions and 287 deletions

30
index.html Normal file
View File

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Home</title>
<style type="text/css">
body {
background-color: #000000;
color: #ffffff;
}
canvas {
border: 1px solid red;
}
</style>
</head>
<body>
<h1>Hello Emscripten</h1>
<canvas id="tutorial" width="300" height="300"></canvas>
<script type="text/javascript">
window.Module = {};
window.Module.canvas = document.getElementById('tutorial');
</script>
<script src="./build/src/dawnhelloworld/HelloWorld.js"></script>
</body>
</html>