Merge branch 'master' of ssh://codewiz.org/~/public_git/mandelwow
[mandelwow.git] / support / mod.rs
1 #![allow(dead_code)]
2
3 use glium::{self, Display};
4 use glium::vertex::VertexBufferAny;
5
6 pub mod camera;
7 pub mod vec3;
8
9 pub enum Action {
10     Stop,
11     Continue,
12 }
13
14 pub fn start_loop<F>(mut callback: F) where F: FnMut() -> Action {
15     loop {
16         match callback() {
17             Action::Stop => break,
18             Action::Continue => ()
19         };
20     }
21 }