6 releases
0.1.23 | Apr 24, 2020 |
---|---|
0.1.22 | Mar 11, 2020 |
0.1.2 | Feb 27, 2020 |
#1603 in Game dev
25 downloads per month
400KB
2.5K
SLoC
gui (name temporary)
Work in progress. Here is a screen-shot of a game being developed with gui.
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
~10–20MB
~276K SLoC