Graphics Lib

This is a simple wrapper around Pixels, designed to be used with Buffer Graphlics Lib

Usage

Cargo

In your Cargo.toml file add toml graphics-shapes = "0.1.5" buffer-graphics-lib = "0.8.1" pixels-graphics-lib = "0.7.1" winit = "0.27.2" winit_input_helper = "0.13.0" #only needed if you're not using `run()`

Code

This bit of boilerplate/framework must be used inside your code to use this library: ```rust struct Example {}

fn main() -> Result<()> { let system = Box::new(Example {}); run(240, 160, WindowScaling::Auto, "Example", system)?; Ok(()) }

impl System for Example { fn update(&mut self, delta: f32) {} fn render(&self, graphics: &mut Graphics) {} } ```

Features

window_prefs

Save and restore window position and size

To use this the impl System must override System::window_prefs()