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§

camera
Positionable Camera with look-at and FOV
colour
Module for working with 8-bit RGB colour
engine
The core of argh is the engine module
light
Light source with position & colour
math
This module holds structs & methods for working with vectors and transformation matrices
models
Models, meshes, textures, materials and 3D objects
primitives
Models, meshes, textures, materials and 3D objects
text
Very basic text rendering