rokol-ffi
Rust FFI to Sokol, only for Rokol
It's generated with bindgen and implements Default
trait.
Status
Tested on macOS only
Supported headers
rokol_ffi
compiles all of the follows:
sokol_app.h
sokol_gfx.h
sokol_glue.h
Supported backends
GlCore33, Metal and D3D9. WebGPU backend is not supported by rokol-ffi (until I need it).
Specifying renderer
To specify the renderer, use feature flag or set ROKOL_RENDERER
. Changing ROKOL_RENDERER
results in recompilation, so I'd recommend not changing it frequently (if possible).
Conditional compilation in down stream crates
rokol_ffi/build.rs
emits DEP_SOKOL_GFX
to build.rs
of crates that lists rokol_ffi
in their Cargo.toml
.