Crate pixels_graphics_lib
source ·Expand description
Rust Graphics Lib
This is a simple wrapper around Pixels
, it provides basic shape, image and text rendering.
This boilerplate code is needed to use it:
struct Example {
}
impl System for Example {
fn update(&mut self, delta: f32) {
}
fn render(&self, graphics: &mut Graphics) {
}
}
fn main() -> Result<(), Box<dyn Error>> {
let system = Example {};
run(240, 160, WindowScaling::Auto, "Doc Example", Box::new(system))?;
Ok(())
}