1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 23:00:04 -04:00

Try out egui subsecond (doesn't seem to work yet :/)

This commit is contained in:
lucasmerlin
2025-08-12 10:50:07 +02:00
parent 53d8c48b4f
commit 3a36861c07
7 changed files with 489 additions and 153 deletions

View File

@@ -73,6 +73,9 @@ impl ImageLoader for GifLoader {
}
fn load(&self, ctx: &egui::Context, frame_uri: &str, _: SizeHint) -> ImageLoadResult {
let time = ctx.input(|i| i.time);
let (image_uri, frame_index) =
decode_animated_image_uri(frame_uri).map_err(|_err| LoadError::NotSupported)?;
let mut cache = self.cache.lock();