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

View File

@@ -9,6 +9,10 @@ Description:
#include "cwasm.h"
#include "std/src/std_main.c"
#include "cwasm_webgl_js_imports.h"
#include "cwasm_webgl_constants.h"
#include "cwasm_arena.c"
#include "cwasm_debug.c"
@@ -16,9 +20,9 @@ void InitializeCWasm(u32 scratchArenasSize)
{
// CwasmDebugOutput(__FILE__, __LINE__, __func__, DbgLevel_Warning, true, "Hello\nWorld!");
Write_D("Hello\nWorld!");
PrintLine_D(" Fuzzy %u Bunnies!\n%s", 31415926, "What");
PrintLine_I(" Fuzzy %u Bunnies!\n%s", 31415926, "What");
WriteLine_D("");
WriteLine_I("When");
WriteLine_W("When");
Write_D("\n");
WriteLine_E("Where");
InitGlobalArenas(scratchArenasSize);