summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorPeter0x44 <[email protected]>2024-06-21 00:05:07 +0100
committerPeter0x44 <[email protected]>2024-06-21 00:05:07 +0100
commit7703f2a74122c771070f19259fc40eb2167df9ac (patch)
tree5a1594c2fb93cc18f8bb4929824e0ed7db106ce1 /Makefile
parent8ed354f7fb32b064b5f082adc127011cca078077 (diff)
downloadraylib-DrawTexturePro-interactive-demo-7703f2a74122c771070f19259fc40eb2167df9ac.tar.gz
raylib-DrawTexturePro-interactive-demo-7703f2a74122c771070f19259fc40eb2167df9ac.zip
Refactor code to use emscripten_set_main_loop
Supposed to give better perf, better to leave frame control to the browser.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e673e5f..2444ff5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
desktop:
zig cc -target native main.c -o game -lGL -lm -lpthread -ldl -lrt -lX11 -Iraylib/src -Iraygui/src lib/tux/libraylib.a && ./game
web:
- emcc -Os -Wall main.c -o game -Iraylib/src -Iraygui/src lib/web/libraylib.a -o output/index.html -s USE_GLFW=3 -s FULL_ES3 -DPLATFORM_WEB --shell-file raylib/src/minshell.html -s TOTAL_MEMORY=268435456 -s ASYNCIFY --preload-file ./assets
+ emcc -Os -Wall main.c -o game -Iraylib/src -Iraygui/src lib/web/libraylib.a -o output/index.html -s USE_GLFW=3 -s FULL_ES3 -DPLATFORM_WEB --shell-file raylib/src/minshell.html -s TOTAL_MEMORY=268435456 --preload-file ./assets