|
1 week ago | |
---|---|---|
.. | ||
.gitignore | 5 months ago | |
README.md | 3 months ago | |
gen_all.py | 3 weeks ago | |
gen_c3.py | 1 month ago | |
gen_d.py | 3 weeks ago | |
gen_ir.py | 6 months ago | |
gen_jai.py | 6 months ago | |
gen_nim.py | 11 months ago | |
gen_odin.py | 6 months ago | |
gen_rust.py | 5 months ago | |
gen_util.py | 6 months ago | |
gen_zig.py | 1 week ago |
First make sure that clang and python3 are in the path:
> clang --version
> python3 --version
...on Windows I simply install those with scoop:
> scoop install llvm
> scoop install python
To update the Zig bindings:
> cd sokol/bindgen
> git clone https://github.com/floooh/sokol-zig
> git clone https://github.com/floooh/sokol-nim
> git clone https://github.com/floooh/sokol-odin
> git clone https://github.com/floooh/sokol-rust
> git clone https://github.com/kassane/sokol-d
> git clone https://github.com/colinbellino/sokol-jai
> git clone https://github.com/floooh/sokol-c3
> python3 gen_all.py
...and then to test and run Zig samples:
> cd sokol/bindgen/sokol-zig
> zig build run-clear
> zig build run-triangle
> zig build run-cube
...