9 breaking releases

0.10.0 May 12, 2022
0.8.0 Mar 30, 2022
0.6.0 Nov 22, 2021
0.1.0 Jun 28, 2021

#84 in Graphics APIs

Download history 8/week @ 2022-01-27 9/week @ 2022-02-03 20/week @ 2022-02-10 14/week @ 2022-02-17 7/week @ 2022-02-24 25/week @ 2022-03-03 32/week @ 2022-03-10 33/week @ 2022-03-17 20/week @ 2022-03-24 22/week @ 2022-03-31 47/week @ 2022-04-07 6/week @ 2022-04-14 8/week @ 2022-04-21 33/week @ 2022-04-28 66/week @ 2022-05-05 192/week @ 2022-05-12

299 downloads per month

BSD-2-Clause

370KB
6.5K SLoC

bgfx-rs

Rust bindings to bgfx, a cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.

Why another wrapper?

While this wrapper for Rust exists, the code here takes a different approach and generate high-level bindings from the BGFX API def instead which will allow easier updating of the bindings once the API changes with much reduced work. In some cases there will be manual implementation where it makes sense to provide more ergonomic Rust code where auto-generation is difficult.

Status

Currently being developed and the API is changing. The goal of this library is to cover the majority of the BGFX functionality while providing some Rust style convenience on top of the C API.

Usage

# Cargo.toml
[dependencies]
bgfx-rs = "0.9"

The library doesn't include any window handling and that has to be provided by the user. See examples an how to use GLFW

License

Licensed under BSD 2-Clause to keep the license the same the BGFX code.

Dependencies

~6.5MB
~149K SLoC