Cafe is game engine/framework, build on top of independent modules:
The other modules i don't started even in C, so i'll start from scratch in Rust:
Example code:
```Rust extern crate cafe;
use cafe::{Game, CafeBuilder}; use cafe::render::render2D::Render2D;
pub struct MyGame {}
impl Game for MyGame { type Render = Render2D;
fn new() -> Self {
MyGame {}
}
fn setup(&mut self, _settings: &mut GameSettings) {}
fn update(&mut self, _dt: f32) {}
fn draw(&mut self, render: &mut Self::Render) {}
}
fn main() {
let cafe = CafeBuilder::new()
.title("Hello Game")
.build::
```