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:
2025-09-01 12:13:56 -07:00
parent cca61ea163
commit b548b7bb26
14 changed files with 1416 additions and 14 deletions

22
data/main.css Normal file
View File

@@ -0,0 +1,22 @@
body
{
/* TODO: Where does this collection of font names come from? Is it standard or something? */
font-family: -apple-system,BlinkMacSystemFont,segoe ui,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol;
}
.main_section
{
text-align: center;
}
#canvas_container
{
display: inline-block;
}
canvas
{
border: 1px solid black;
width: 640px;
height: 480px;
}