Add docs for pub exports of backgrounds

This commit is contained in:
Gwilym Inzani 2024-08-28 14:55:12 +01:00
parent bc979d7299
commit f25fe7f707

View file

@ -106,6 +106,15 @@
/// # use agb::include_background_gfx; /// # use agb::include_background_gfx;
/// include_background_gfx!(generated_background, "000000", DATA => "$OUT_DIR/generated_background.aseprite"); /// include_background_gfx!(generated_background, "000000", DATA => "$OUT_DIR/generated_background.aseprite");
/// ``` /// ```
///
/// You can also make the exported background a public module which will allow other modules access them. The following
/// will declare `water_tiles` as a `pub mod` rather than a `mod`.
///
/// ```rust,no_run
/// ##![no_std]
/// ##![no_main]
/// agb::include_background_gfx!(pub water_tiles, tiles => "examples/water_tiles.png");
/// ```
pub use agb_image_converter::include_background_gfx; pub use agb_image_converter::include_background_gfx;
#[doc(hidden)] #[doc(hidden)]