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:
8
cwasm.c
8
cwasm.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user