Set up a basic "front-end" for the webassembly module to be tested locally from a data folder (I use python -m http.server). The WebAssembly application is now responsible for all setup/rendering through the WebGL2 context.
This commit is contained in:
20
data/index.html
Normal file
20
data/index.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="main.css" />
|
||||
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
||||
<meta content="utf-8" http-equiv="encoding">
|
||||
</head>
|
||||
<body>
|
||||
<div class="main_section">
|
||||
<p>🠟 The canvas is below 🠟</p>
|
||||
<div id="canvas_container">
|
||||
<canvas>
|
||||
Your browser does not support the HTML5 canvas tag.
|
||||
</canvas>
|
||||
</div>
|
||||
<p>🠝 The canvas is above 🠝</p>
|
||||
</div>
|
||||
<script async type="module" src="main.js" ></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user