specs-blit
2D sprite rendering extension for the Specs ECS system.
All sprites are loaded onto a big array on the heap.
Example
// Setup the specs world
let mut world = new;
// Load the blit components into the world
world.;
// Add the pixel buffer as a resource so it can be accessed from the RenderSystem later
const WIDTH: usize = 800;
const HEIGHT: usize = 600;
world.insert;
let sprite_ref = ;
// Create a new sprite entity in the ECS system
world.create_entity
.with
.build;
// Setup the dispatcher with the blit system
let mut dispatcher = new
.with_thread_local
.build;
// Enter the render loop that should be called every frame
while render_frame