This is an attempt at designing a simple 2D graphics API on top of wgpu, inspired by macroquad. You should probably not use this (yet).
```rust use kaffee::prelude::*;
struct GameState;
impl EventHandler for GameState { fn update(&mut self, dt: f32) {}
fn redraw(&mut self, r: &mut RenderContext) {
r.draw_batch(|b| {
b.draw_quad(0.5, 0.5, RED);
b.draw_quad(6.5, 6.5, GREEN);
b.draw_quad(8.5, 8.5, BLUE);
});
r.end_frame();
}
}
fn main() { pollster::block_on(App::run(&Settings::default(), GameState {})) } ```
Apache License, Version 2.0