6 releases

0.1.23 Apr 24, 2020
0.1.22 Mar 11, 2020
0.1.2 Feb 27, 2020

#1366 in Game dev

Download history 1/week @ 2024-02-19 5/week @ 2024-02-26 125/week @ 2024-04-01

125 downloads per month

MIT license

400KB
2.5K SLoC

Rust 2K SLoC // 0.1% comments GLSL 265 SLoC // 0.0% comments

gui (name temporary)

Work in progress. Here is a screen-shot of a game being developed with gui. Image

License

MIT


lib.rs:

fumarole is a simple engine for simple games and gui applications alike. It uses glium for rendering, and it is quite efficient size it's a 2d engine and draws everything in the same draw call.

Example

extern crate fumarole;

use fumarole::*;

struct Test {
    x: f32
};

impl State for Test {
    fn draw(&self, frame: &mut Frame, _data: &StateData) {
        frame.rect()
            .position(Vec2::new(self.x, 0.0))
            .draw();
    }
}

fn main() {
    Application::new()
        .run(|_loader| {
            Box::new(Test {
                x: -1.0
            }) 
        });
}

Dependencies

~23MB
~272K SLoC