Skip to main content

draw_texture_tile

Function draw_texture_tile 

Source
fn draw_texture_tile(
    ui: &mut Ui,
    project: &Project,
    path: &Path,
    previews: &mut HashMap<PathBuf, TextureHandle>,
)
Expand description

One tile: the texture’s own thumbnail (loaded through egui’s own texture manager, and cached in previews so it’s decoded from disk once rather than every frame) with the file name below it.