transparent-cube

Minimal cross-platform native/wasm graphics example.
Log | Files | Refs | README | LICENSE

commit cb9e02700c64e23150a453482b38d4d91a870340
parent 82c79190353215f766fb7c5bfce0c72bc296c88f
Author: Amin Mesbah <dev@aminmesbah.com>
Date:   Sun, 23 Jun 2019 14:05:53 -0700

Pass updated screen dimensions to update function

Yay!!!!!!!!!!!!!!!!! Finally we're running properly on wasm+webgl
without emscripten!!!!!!!

Diffstat:
Msrc/platform_wasm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/platform_wasm.c b/src/platform_wasm.c @@ -27,7 +27,7 @@ export bool init(void) export void render(void) { time += 16; - game_update_and_render(&g_game_state, time/1000.0f, 800, 600); + game_update_and_render(&g_game_state, time/1000.0f, g_width, g_height); } export void window_resize(int w, int h)