projects
/
mandelwow.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Improve asmjs build docs.
[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
}