|
|
2 лет назад | |
|---|---|---|
| .. | ||
| .gitignore | 2 лет назад | |
| README.md | 3 лет назад | |
| gen_all.py | 2 лет назад | |
| gen_ir.py | 3 лет назад | |
| gen_nim.py | 3 лет назад | |
| gen_odin.py | 3 лет назад | |
| gen_rust.py | 2 лет назад | |
| gen_util.py | 3 лет назад | |
| gen_zig.py | 3 лет назад | |
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
> python3 gen_all.py
Test and run samples:
> cd sokol/bindgen/sokol-zig
> zig build run-clear
> zig build run-triangle
> zig build run-cube
...