[][src]Trait epi::TextureAllocator

pub trait TextureAllocator {
    pub fn alloc_srgba_premultiplied(
        &mut self,
        size: (usize, usize),
        srgba_pixels: &[Color32]
    ) -> TextureId;
pub fn free(&mut self, id: TextureId); }

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]

Allocate a new user texture.

pub fn free(&mut self, id: TextureId)[src]

Free the given texture.

Loading content...

Implementors

Loading content...