Very easy to use, thread-safe Rust sprite rendering engine.
This is work-in-progress. The API is incomplete and will likely still change somewhat. Have a look if you like, but don't depend on it :)
To compile the examples, use e.g. cargo run --release --example blobs
. See examples folder for other available examples.
Display::new()
. This represents the window/fullscreen.Renderer::new()
. It does all the work.context()
method. It is only required in order to load resources.Font::from_file()
or Sprite::from_file()
.Layer::new()
.Font::write()
or Sprite::draw()
methods.Renderer::clear_target()
. (If you don't want to clear, use Renderer::prepare_target()
instead.)Renderer::draw_layer()
.Renderer::swap_target()
.Arc
s.Arc
s for each thread that needs their contents. The rendercontext can be cloned directly.Renderer
; both it and Display
do not implement Send