[][src]Trait egui::app::TextureAllocator

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

Required methods

pub fn alloc(&mut self) -> TextureId[src]

A.locate a new user texture.

pub fn set_srgba_premultiplied(
    &mut self,
    id: TextureId,
    size: (usize, usize),
    srgba_pixels: &[Srgba]
)
[src]

Set or change the pixels of a user texture.

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

Free the given texture.

Loading content...

Implementors

Loading content...