Skip to main content

Crate argh

Crate argh 

Source
Expand description

Argh (Another Rust Graphics Helper) is a software rendering library using minifb. It supports 2D and 3D graphics functions and has been developed without AI assistance

§Examples

Minimal usage and getting started

use argh::core::{Engine, Scene};

struct MyScene {}
impl Scene for MyScene {
    fn update(&mut self, e: &mut Engine, _: f64) {
        // Update & draw here
    }
}

fn main() {
    let eng = Engine::new(800, 600, String::from("Hello World"), 1);
    eng.start(MyScene {});
}

Modules§

colour
engine
helpers
math
This module holds structs & methods for working with vectors and transformation matrices. It follows classic patterns for working with these in a computer graphics context
text