diff --git a/src/core/app.rs b/src/core/app.rs index c6cc69b..f26f357 100644 --- a/src/core/app.rs +++ b/src/core/app.rs @@ -10,7 +10,7 @@ use winit::{ use super::camera; use crate::{ gfx::{self, Renderer}, - voxel::{self, brickworld::BrickmapRenderer}, + voxel::{self, brickmap::BrickmapRenderer}, }; pub struct App<'window> { diff --git a/src/voxel/brickworld/brickgrid.rs b/src/voxel/brickmap/brickgrid.rs similarity index 100% rename from src/voxel/brickworld/brickgrid.rs rename to src/voxel/brickmap/brickgrid.rs diff --git a/src/voxel/brickworld/brickmap_cache.rs b/src/voxel/brickmap/brickmap_cache.rs similarity index 100% rename from src/voxel/brickworld/brickmap_cache.rs rename to src/voxel/brickmap/brickmap_cache.rs diff --git a/src/voxel/brickworld/brickmap.rs b/src/voxel/brickmap/manager.rs similarity index 100% rename from src/voxel/brickworld/brickmap.rs rename to src/voxel/brickmap/manager.rs diff --git a/src/voxel/brickmap/mod.rs b/src/voxel/brickmap/mod.rs new file mode 100644 index 0000000..ffaf373 --- /dev/null +++ b/src/voxel/brickmap/mod.rs @@ -0,0 +1,9 @@ +mod brickgrid; +mod brickmap_cache; +mod manager; +mod renderer; +mod shading_table; +mod util; + +pub use manager::BrickmapManager; +pub use renderer::BrickmapRenderer; diff --git a/src/voxel/brickworld/voxel_renderer.rs b/src/voxel/brickmap/renderer.rs similarity index 100% rename from src/voxel/brickworld/voxel_renderer.rs rename to src/voxel/brickmap/renderer.rs diff --git a/src/voxel/brickworld/shading_table.rs b/src/voxel/brickmap/shading_table.rs similarity index 100% rename from src/voxel/brickworld/shading_table.rs rename to src/voxel/brickmap/shading_table.rs diff --git a/src/voxel/brickworld/util.rs b/src/voxel/brickmap/util.rs similarity index 100% rename from src/voxel/brickworld/util.rs rename to src/voxel/brickmap/util.rs diff --git a/src/voxel/brickworld/mod.rs b/src/voxel/brickworld/mod.rs deleted file mode 100644 index 863b91e..0000000 --- a/src/voxel/brickworld/mod.rs +++ /dev/null @@ -1,9 +0,0 @@ -mod brickgrid; -mod brickmap; -mod brickmap_cache; -mod shading_table; -mod util; -mod voxel_renderer; - -pub use brickmap::BrickmapManager; -pub use voxel_renderer::BrickmapRenderer; diff --git a/src/voxel/mod.rs b/src/voxel/mod.rs index cc86079..8701cbe 100644 --- a/src/voxel/mod.rs +++ b/src/voxel/mod.rs @@ -1,2 +1,2 @@ -pub mod brickworld; +pub mod brickmap; pub mod world;