# main_game_loop [![dependency status](https://deps.rs/repo/github/Overpeek/main_game_loop/status.svg)](https://deps.rs/repo/github/Overpeek/main_game_loop)

Example usage with some random Engine

```rust fn main() { let engine = Engine::new(); engine.buildgameloop().run::(); }

struct App { vbo: VertexBuffer, shader: Shader, }

impl Runnable for App { fn init(_: &mut GameLoop) -> Self { Self { vbo: VertexBuffer::new(), shader: Shader::new(), } }

fn draw(&mut self, gl: &mut GameLoop<Engine>, frame: &mut Frame, delta: f32) {
    frame
        .main_render_pass()
        .bind_vbo(&self.vbo)
        .bind_shader(&self.shader)
        .draw(0..6, 0..1);
}

} ```