diff --git a/Cargo.lock b/Cargo.lock index c280a86..7d002bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -187,7 +187,7 @@ dependencies = [ ] [[package]] -name = "opengl-rust" +name = "opengl_rust" version = "0.1.0" dependencies = [ "gl 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 0bd440e..efb91b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "opengl-rust" +name = "opengl_rust" version = "0.1.0" authors = ["_"] edition = "2018" diff --git a/src/main.rs b/src/bin/pumpkin.rs similarity index 99% rename from src/main.rs rename to src/bin/pumpkin.rs index 25f1dd3..44713b9 100644 --- a/src/main.rs +++ b/src/bin/pumpkin.rs @@ -6,11 +6,7 @@ use std::collections::HashMap; use std::ffi::{c_void}; use std::time::{Duration}; -mod file; -mod iqm; -mod shader; -mod texture; -mod timestep; +use opengl_rust::*; use file::load_small_file; use iqm::Model; diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..a28090c --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,5 @@ +pub mod file; +pub mod iqm; +pub mod shader; +pub mod texture; +pub mod timestep;