Trait egui_sfml::UserTexSource
source · pub trait UserTexSource {
fn get_texture(&mut self, id: u64) -> (f32, f32, &Texture);
}
Expand description
A source for egui user textures.
You can create a struct that contains all the necessary information to get a user texture from an id, and implement this trait for it.