|
|
f45c2d88e0
|
Added some simple background textures from OpenGameArt.org and rendered them with a little parallax effect
|
2025-09-02 12:20:11 -07:00 |
|
|
|
1a9775d670
|
Added cwasm_vectors.c and cwasm_matrices.c. Vectors API is completely finished, Matrices API is partially finished. Added Clamp(value, min, max) macro to cwasm.h. Fixed types on jsGl functions that take vectors or matrices (and Arena*).
|
2025-09-02 00:15:03 -07:00 |
|
|
|
b62f0d279b
|
Add cAllocMem to cwasm.c which the javascript side can use to allocate memory from an opaque Arena pointer that was passed to it. Used this to implement jsGlGetParameterString, jsGlGetShaderInfoLog, and jsGlGetProgramInfoLog in gl_functions.js. Added NotNull macro and fixed bug in ScratchBegin macro. Added a bool return for App_Initialize which allows us to stop the main loop from beginning (which prevents log spew when something goes wrong)
|
2025-09-01 21:53:24 -07:00 |
|
|
|
42cf6d9e9f
|
Added a bunch of WebGL functions related to shader uniforms to gl_functions.js
|
2025-09-01 18:50:14 -07:00 |
|
|
|
cca61ea163
|
Added cwasm_arena.c and cwasm_debug.c. Arena API hasn't been tested well yet. There's also something wrong with our DebugOutputLineBuffer usage for splitting lines to multiple Javascript output calls. Also added an int level to jsStdPrint and a bunch of macros to cwasm.h
|
2025-08-31 17:33:48 -07:00 |
|
Taylor Robbins (Piggybank Studios)
|
d0aa7a1d0e
|
Added math.h, stdlib.h, float.h, and stbool.h to std folder (and all their implementations). Opted to NOT implement malloc/free/etc. in favor of having our own functions init_mem, grow_mem, and get_mem.
|
2025-08-28 13:20:08 -07:00 |
|
Taylor Robbins (Piggybank Studios)
|
deae3ccd12
|
Got a basic WebAssembly module compiling with support for calling jsStdPrint through printf implementation (provided by stb_sprintf.h). We have a single function "HelloFromWasm" exported for testing purposes. Pulled in a bunch of standard library headers from PigCore's wasm layer.
|
2025-08-28 09:44:32 -07:00 |
|