From e5c06fa365c425c309358c18fca4ee6106bf6c84 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 6 Apr 2024 09:27:39 +0100 Subject: [PATCH] Rename brickworld module to brickmap --- src/core/app.rs | 2 +- src/voxel/{brickworld => brickmap}/brickgrid.rs | 0 src/voxel/{brickworld => brickmap}/brickmap_cache.rs | 0 .../{brickworld/brickmap.rs => brickmap/manager.rs} | 0 src/voxel/brickmap/mod.rs | 9 +++++++++ .../voxel_renderer.rs => brickmap/renderer.rs} | 0 src/voxel/{brickworld => brickmap}/shading_table.rs | 0 src/voxel/{brickworld => brickmap}/util.rs | 0 src/voxel/brickworld/mod.rs | 9 --------- src/voxel/mod.rs | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) rename src/voxel/{brickworld => brickmap}/brickgrid.rs (100%) rename src/voxel/{brickworld => brickmap}/brickmap_cache.rs (100%) rename src/voxel/{brickworld/brickmap.rs => brickmap/manager.rs} (100%) create mode 100644 src/voxel/brickmap/mod.rs rename src/voxel/{brickworld/voxel_renderer.rs => brickmap/renderer.rs} (100%) rename src/voxel/{brickworld => brickmap}/shading_table.rs (100%) rename src/voxel/{brickworld => brickmap}/util.rs (100%) delete mode 100644 src/voxel/brickworld/mod.rs 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;