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.
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
})
});
}
application | |
color | |
math | This is the math library for fumarole.
|
rendering | Rendering in fumarole is handled by drawing 'Shapes' to the window.
|
state | The State is the basis for pretty much anything in fumarole. The application keeps track of
your states and runs functions such as draw and update on them.
|