add file dialog

This commit is contained in:
Fabien Freling 2023-10-13 18:16:41 +02:00
parent 7f0c088b3d
commit a503e67eaf
6 changed files with 775 additions and 8 deletions

View file

@ -7,8 +7,8 @@ build:
zig build
web-build:
# zig build-lib src/main.zig -target wasm32-freestanding -dynamic -rdynamic
zig build -Dtarget=wasm32-emscripten --sysroot /nix/store/zll7a6ns3avx509kgx0jjghz8g89l2g0-emscripten-3.1.45
# zig build-lib src/main.zig -target wasm32-freestanding -dynamic -rdynamic
zig build -Dtarget=wasm32-emscripten --sysroot /nix/store/zll7a6ns3avx509kgx0jjghz8g89l2g0-emscripten-3.1.45
run:
nixGL zig build run
@ -21,4 +21,6 @@ format:
fd -e nix -X nix fmt {}
update-deps:
curl https://raw.githubusercontent.com/raysan5/raygui/master/src/raygui.h --output 3rd-party/raygui.h
# We cannot easily add header-only C library with package manager
curl https://raw.githubusercontent.com/raysan5/raygui/master/src/raygui.h --remote-name --output-dir 3rd-party/
curl https://raw.githubusercontent.com/raysan5/raygui/master/examples/custom_file_dialog/gui_window_file_dialog.h --remote-name --output-dir 3rd-party/