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: &Timing) {

  }

  fn render(&mut self, graphics: &mut Graphics) {

  }
}

fn main() -> Result<(), Box<dyn Error>> {
let system = Example {};
  run(240, 160, "Doc Example", Box::new(system), Options::default())?;
  Ok(())
}

Re-exports

Modules

Macros

Structs

Enums

Traits

Functions

  • Helper method that sets up the screen and runs the loop
  • Creates the window and pixels wrapper