diff options
author | HampusM <hampus@hampusmat.com> | 2024-02-18 19:18:18 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-02-18 19:18:18 +0100 |
commit | e8c6c096b2068f4ea71b021bf02f56d266ed671c (patch) | |
tree | 0cc54c1c82bf7af9881da00fa4d1a882a8263fd1 /engine/src/lib.rs | |
parent | 12e0f5ffffcaa36cce3cd4fecc007b9a2955ff23 (diff) |
refactor(engine): move data types to a data types module
Diffstat (limited to 'engine/src/lib.rs')
-rw-r--r-- | engine/src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs index fdd79a4..fada83f 100644 --- a/engine/src/lib.rs +++ b/engine/src/lib.rs @@ -12,7 +12,6 @@ use crate::object::{Id as ObjectId, Object}; use crate::renderer::Renderer; use crate::vector::Vec2; -mod matrix; mod opengl; mod projection; mod renderer; @@ -20,19 +19,21 @@ mod shader_preprocessor; mod transform; pub mod camera; -pub mod color; +pub mod data_types; pub mod lighting; pub mod material; pub mod math; pub mod mesh; pub mod object; pub mod texture; -pub mod vector; pub mod vertex; pub use glfw::window::Key; pub use glfw::WindowSize; +pub(crate) use crate::data_types::matrix; +pub use crate::data_types::{color, vector}; + #[derive(Debug)] pub struct Engine<CameraT> { |