All in one safe Rust API and wrappers for stb libraries.
The following APIs are currently available:
stb_easy_fontstb_dxtstb_imagestb_image_writestb_perlin
Please refer to the documentation for details or have a look on examples.
Not implemented, but planned:
stb_truetypestb_image_resizestb_rect_pack
Add the following to your Cargo.toml file:
[dependencies]
stb = "0.3.2"or if you want to have a specific feature selection:
[dependencies]
stb = { version = "0.3.2", default-features = false, features = ["stb_easy_font"] }Here is the list of feature toggles available in this crate so far:
stb_easy_fontstb_dxtstb_dxt_use_rounding_bias
stb_imagestbi_no_linearstbi_no_jpegstbi_no_pngstbi_no_bmpstbi_no_psdstbi_no_gifstbi_no_hdrstbi_no_picstbi_no_pnm
stb_image_writestb_perlin
Contributions are generally welcome. Make sure your changes make sense for this project (if in doubt, open an issue first), the code is reasonbly tested, and passes the CI checks.