transparent-cube

Minimal cross-platform native/wasm graphics example.
git clone git://git.amin.space/transparent-cube.git
Log | Files | Refs | README | LICENSE

commit 0a48c423fd3db9aaa717f07964f2652246f1db2b
parent db83cd00d5a703af92c733e961bbe41b489cce3a
Author: amin <dev@aminmesbah.com>
Date:   Sun, 23 Jun 2019 21:05:53 +0000

Pass updated screen dimensions to update function

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

FossilOrigin-Name: 105d33356fbb0a4c7da639c982171052c0676da8f994b6fd1b287f7c0524e45b
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)