| Crates.io | rgrit |
| lib.rs | rgrit |
| version | 0.1.1 |
| created_at | 2025-01-13 01:04:05.371662+00 |
| updated_at | 2025-01-13 01:04:05.371662+00 |
| description | A Rust interface to grit - the GBA Image Transmogrifier with batteries included! |
| homepage | https://github.com/not-jan/rgrit |
| repository | https://github.com/not-jan/rgrit |
| max_upload_size | |
| id | 1513918 |
| size | 31,059 |
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 llvm
I'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-dev
Untested, 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);
}