Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion framework_crates/bones_framework/src/render/sprite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ pub enum Image {
External(u32),
}

struct ImageAssetLoader;
/// Implements [`AssetLoader`] which attempts to return a [`SchemaBox`]
/// containing [`Image::Data`] schema data.
pub struct ImageAssetLoader;
impl AssetLoader for ImageAssetLoader {
fn load(&self, _ctx: AssetLoadCtx, bytes: &[u8]) -> BoxedFuture<anyhow::Result<SchemaBox>> {
let bytes = bytes.to_vec();
Expand Down
Loading