Skip to content

Commit

Permalink
Update load.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Dec 6, 2024
1 parent aca3041 commit 592b1b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/egui/src/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ pub trait ImageLoader {

/// If the loader caches any data, this should return the size of that cache.
fn byte_size(&self) -> usize;

/// Returns the number of frames in the Image.
fn frame_count(&self, uri: &str) -> usize;
}

/// A texture with a known size.
Expand Down

0 comments on commit 592b1b0

Please sign in to comment.