[−][src]Trait epi::TextureAllocator
How to allocate textures (images) to use in egui
.
Required methods
pub fn alloc_srgba_premultiplied(
&mut self,
size: (usize, usize),
srgba_pixels: &[Color32]
) -> TextureId
[src]
&mut self,
size: (usize, usize),
srgba_pixels: &[Color32]
) -> TextureId
Allocate a new user texture.
pub fn free(&mut self, id: TextureId)
[src]
Free the given texture.