Pixeller 2562db4890 use addr instead %!s(int64=2) %!d(string=hai) anos
..
.gitignore ddc36813b9 Integrate automatic sokol-rust bindings generation. (#811) %!s(int64=2) %!d(string=hai) anos
README.md f8abb1ca80 gen_zig.py: add compile time branches for stage2 support %!s(int64=3) %!d(string=hai) anos
gen_all.py ddc36813b9 Integrate automatic sokol-rust bindings generation. (#811) %!s(int64=2) %!d(string=hai) anos
gen_ir.py 818d12e997 bindings generation: dump intermediate JSON for easier debugging %!s(int64=3) %!d(string=hai) anos
gen_nim.py 2562db4890 use addr instead %!s(int64=2) %!d(string=hai) anos
gen_odin.py 17611db591 add sokol_log.h to odin bindings generator %!s(int64=3) %!d(string=hai) anos
gen_rust.py dbe397f6ed gen_rust.py: special case SAPP_MODIFIER_* constants to u32 (fixes https://github.com/floooh/sokol-rust/issues/5) %!s(int64=2) %!d(string=hai) anos
gen_util.py 471f125e0a Fix language bindings: %!s(int64=3) %!d(string=hai) anos
gen_zig.py ce08661a3f add sokol_log.h to zig bindings %!s(int64=3) %!d(string=hai) anos

README.md

Language Binding Generation Scripts

Zig

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
...