Rust wrapper for blaze library.
Features are the same as the original library, just Rust-flavored:
- Dynamic batched sprite drawing
- Static batched sprite drawing
- Immediate drawing
- Texture loading
- Render targets
- Custom shaders
- Screenshot saving
The API documentation contains information about the implementation.
Add to your Cargo.toml:
blaze_rs = { git = "https://github.com/RaZeR-RBI/blaze-rs.git" }
To use this wrapper, you must install the blaze library.
Make sure you have the compiled library in the system's linker path.
You can check the tests directory to see what you can do.
The build script uses an environment variable called BLAZE_PATH
, which can
point to location where libblaze.so (or libblaze.dll) is stored. If it's not set,
the system linker paths will be used by default.
To run tests with coverage collection enabled, and also generate documentation you can use a bundled script:
./build_test_and_doc.sh
Coverage data is provided by tarpaulin, so in order to get coverage data you should have it installed.