Replies: 1 comment
-
I don't think where you load it matters when it's static image (as opposed to a dynamic texture), as the data gets cached: egui/crates/egui/src/load/bytes_loader.rs Line 34 in 738ea75 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am creating a image manipulation program, like Gimp, with a toolbar with icons with text.
I load the button images with this code:
let crop_icon = egui::Image::new(egui::include_image!("../assets/tool-icons/crop.svg")).tint(self.sys_color);
And use it like this:
But I do not now if loading my assets in the update function is correct.
Any recommendations are welcome!
Beta Was this translation helpful? Give feedback.
All reactions