Skip to content

RaZeR-RBI/blaze-rs

Repository files navigation

blaze-rs


License:MIT

Rust wrapper for blaze library.

API Documentation

Test coverage

Features

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.

Installation and usage

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.

Examples

You can check the tests directory to see what you can do.

Running tests

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.

About

Rust bindings for blaze graphics library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published