diff options
| author | bnewbold <bnewbold@robocracy.org> | 2016-06-13 23:46:58 -0400 |
|---|---|---|
| committer | bnewbold <bnewbold@robocracy.org> | 2016-06-13 23:46:58 -0400 |
| commit | 8e6c8bdfb4924bc671dd37e47d473ea803880825 (patch) | |
| tree | 3101c14fdbe9cc791ea170aacae82786473d5669 | |
| parent | 4fb57de0201eaecdafffdcc285e7dc3ef9d4f6d8 (diff) | |
| download | exuberant-hacks-8e6c8bdfb4924bc671dd37e47d473ea803880825.tar.gz exuberant-hacks-8e6c8bdfb4924bc671dd37e47d473ea803880825.zip | |
change API to pass time as arg to draw_frame
| -rw-r--r-- | Cargo.lock | 11 | ||||
| -rw-r--r-- | Cargo.toml | 1 | ||||
| -rw-r--r-- | src/bin/exuberantbovines.rs | 7 | ||||
| -rw-r--r-- | src/lib.rs | 5 |
4 files changed, 17 insertions, 7 deletions
@@ -5,6 +5,7 @@ dependencies = [ "getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", "glium 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)", "image 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -564,6 +565,16 @@ dependencies = [ ] [[package]] +name = "time" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] name = "user32-sys" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -11,4 +11,5 @@ authors = ["bnewbold <bnewbold@robocracy.org>"] glium = "0.*" image = "0.*" getopts = "^0.2" +time = "0.1" diff --git a/src/bin/exuberantbovines.rs b/src/bin/exuberantbovines.rs index 799fff5..e07f28c 100644 --- a/src/bin/exuberantbovines.rs +++ b/src/bin/exuberantbovines.rs @@ -12,7 +12,6 @@ use glium::Surface; mod cow_model; struct ExuberantBovines { - t: f64, display: glium::Display, program: glium::Program, model_vertices: Vec<glium::VertexBuffer<cow_model::Vertex>>, @@ -92,7 +91,6 @@ impl ExuberantBovines { return ExuberantBovines { display: display, program: program, - t: 0.0, model_vertices: vec