1extern crate alloc;
4
5pub mod prelude {
7 pub use crate::{
8 dynamic_texture_atlas_builder::DynamicTextureAtlasBuilder,
9 texture_atlas::{TextureAtlas, TextureAtlasLayout, TextureAtlasSources},
10 Image, ImageFormat, ImagePlugin, TextureAtlasBuilder, TextureError,
11 };
12}
13
14#[cfg(all(feature = "zstd", not(feature = "zstd_rust"), not(feature = "zstd_c")))]
15compile_error!(
16 "Choosing a zstd backend is required for zstd support. Please enable either the \"zstd_rust\" or the \"zstd_c\" feature."
17);
18
19mod image;
20pub use self::image::*;
21#[cfg(feature = "serialize")]
22mod serialized_image;
23#[cfg(feature = "serialize")]
24pub use self::serialized_image::*;
25#[cfg(feature = "basis-universal")]
26mod basis;
27#[cfg(feature = "compressed_image_saver")]
28mod compressed_image_saver;
29#[cfg(feature = "dds")]
30mod dds;
31mod dynamic_texture_atlas_builder;
32#[cfg(feature = "exr")]
33mod exr_texture_loader;
34#[cfg(feature = "hdr")]
35mod hdr_texture_loader;
36mod image_loader;
37#[cfg(feature = "ktx2")]
38mod ktx2;
39mod saver;
40mod texture_atlas;
41mod texture_atlas_builder;
42
43#[cfg(feature = "compressed_image_saver")]
44pub use compressed_image_saver::*;
45#[cfg(feature = "dds")]
46pub use dds::*;
47pub use dynamic_texture_atlas_builder::*;
48#[cfg(feature = "exr")]
49pub use exr_texture_loader::*;
50#[cfg(feature = "hdr")]
51pub use hdr_texture_loader::*;
52pub use image_loader::*;
53#[cfg(feature = "ktx2")]
54pub use ktx2::*;
55pub use saver::*;
56pub use texture_atlas::*;
57pub use texture_atlas_builder::*;
58
59pub(crate) mod image_texture_conversion;
60pub use image_texture_conversion::IntoDynamicImageError;