bevy_image/
lib.rs

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