Crates.io | rokol_ffi |
lib.rs | rokol_ffi |
version | 0.3.1 |
source | src |
created_at | 2020-11-20 07:49:20.972691 |
updated_at | 2022-01-06 11:54:24.179557 |
description | Rust FFI to Sokol |
homepage | |
repository | https://github.com/toyboot4e/rokol |
max_upload_size | |
id | 314277 |
size | 2,863,750 |
Rust FFI to Sokol, only for Rokol
It's generated with bindgen and implements Default
trait.
Tested on macOS only
rokol_ffi
compiles all of the follows:
sokol_app.h
sokol_gfx.h
sokol_glue.h
GlCore33, Metal and D3D9. WebGPU backend is not supported by rokol-ffi (until I need it).
Use feature flag to switch graphics backend: cargo run --features=glcore33
.
rokol_ffi/build.rs
emits DEP_SOKOL_GFX
to build.rs
of crates that lists rokol_ffi
in their Cargo.toml
.