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:
22
data/main.css
Normal file
22
data/main.css
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user