From 09ac68df66c7f264aafa739efd254294fd4e6dc6 Mon Sep 17 00:00:00 2001 From: gered Date: Wed, 8 Mar 2023 21:08:05 -0500 Subject: [PATCH] add placeholder 'rgb' module --- ggdt/src/graphics/indexed/mod.rs | 3 +++ ggdt/src/graphics/mod.rs | 1 + ggdt/src/graphics/rgb/mod.rs | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 ggdt/src/graphics/rgb/mod.rs diff --git a/ggdt/src/graphics/indexed/mod.rs b/ggdt/src/graphics/indexed/mod.rs index 248791f..10eec38 100644 --- a/ggdt/src/graphics/indexed/mod.rs +++ b/ggdt/src/graphics/indexed/mod.rs @@ -1,3 +1,6 @@ +//! This module and all sub-modules contain graphics functionality that uses indexed colours. That is, each pixel +//! is a `u8` and treated as index into a [`Palette`], so 256 maximum colours are possible. + pub use self::bitmap::*; pub use self::blendmap::*; pub use self::font::*; diff --git a/ggdt/src/graphics/mod.rs b/ggdt/src/graphics/mod.rs index b166bd8..5003e3d 100644 --- a/ggdt/src/graphics/mod.rs +++ b/ggdt/src/graphics/mod.rs @@ -4,3 +4,4 @@ pub use self::bitmapatlas::*; pub mod basicimage; pub mod bitmapatlas; pub mod indexed; +pub mod rgb; diff --git a/ggdt/src/graphics/rgb/mod.rs b/ggdt/src/graphics/rgb/mod.rs new file mode 100644 index 0000000..e8d5bb9 --- /dev/null +++ b/ggdt/src/graphics/rgb/mod.rs @@ -0,0 +1,2 @@ +//! This module and all sub-modules contain graphics functionality that uses 32-bit colour data. That is, each pixel +//! is a `u32` and contains full RGBA information.