This crate provides a Rust interface to grit - the GBA Image Transmogrifier (“grit” for short). It is a bitmap conversion tool for GBA/NDS development.
The bindings are generated using bindgen.
The manual for grit can be found here.
git clone https://github.com/not-jan/rgrit.git
cd rgrit
git submodule update --init
cargo build
brew install automake libtool freeimage llvmI'm not sure if llvm is required, but it's probably a good idea to install it anyway.
sudo apt-get install autoconf build-essential libtool libfreeimage-devUntested, but might work.
use rgrit::StaticBitmap;
const BACKGROUND: StaticBitmap = rgrit::grit! {
"assets/test.png",
transparency = Disabled,
bit_depth = 16,
format = Bitmap,
};
fn main() {
dbg!(&BACKGROUND);
}