Expand description
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
})
});
}
Re-exports§
pub use rendering::Anchor;
pub use rendering::Frame;
pub use rendering::Canvas;
pub use application::*;
pub use state::*;
pub use image::ImageFormat::*;
pub use math::*;
Modules§
- 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.
Macros§
Structs§
Enums§
- Error
- Mouse
Button - Describes a button of a mouse controller.