aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/draw/texture/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-render/src/draw/texture/mod.rs')
-rw-r--r--stockton-render/src/draw/texture/mod.rs22
1 files changed, 13 insertions, 9 deletions
diff --git a/stockton-render/src/draw/texture/mod.rs b/stockton-render/src/draw/texture/mod.rs
index 3878472..09896ab 100644
--- a/stockton-render/src/draw/texture/mod.rs
+++ b/stockton-render/src/draw/texture/mod.rs
@@ -17,14 +17,18 @@
//! Everything related to loading textures into GPU memory
-// Since this is in the process of being rewritten, we ignore this for now
-#![allow(clippy::too_many_arguments)]
-
-mod chunk;
-pub mod image;
-pub mod loader;
-mod resolver;
+mod block;
+mod image;
+mod load;
+mod loader;
+mod repo;
+pub mod resolver;
+mod staging_buffer;
+pub use self::block::TexturesBlock;
pub use self::image::LoadableImage;
-pub use self::image::{LoadedImage, SampledImage};
-pub use self::loader::TextureStore;
+pub use self::loader::BlockRef;
+pub use self::repo::TextureRepo;
+
+/// The size of each pixel in an image
+pub const PIXEL_SIZE: usize = std::mem::size_of::<u8>() * 4;