pub struct RawImageLoader;Expand description
Loader for raw RGBA8 image files.
The file format is a 12-byte header:
[4 bytes "RIMG"] [4 bytes width LE u32] [4 bytes height LE u32]
followed by width * height * 4 raw RGBA bytes.
This is intentionally minimal — a real engine would plug in a PNG decoder.
Trait Implementations§
Source§impl AssetLoader<ImageAsset> for RawImageLoader
impl AssetLoader<ImageAsset> for RawImageLoader
Auto Trait Implementations§
impl Freeze for RawImageLoader
impl RefUnwindSafe for RawImageLoader
impl Send for RawImageLoader
impl Sync for RawImageLoader
impl Unpin for RawImageLoader
impl UnsafeUnpin for RawImageLoader
impl UnwindSafe for RawImageLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more