pub trait NativeTexture {
    type Texture;
    fn register_native_texture(&mut self, native: Self::Texture) -> TextureId;
fn replace_native_texture(
        &mut self,
        id: TextureId,
        replacing: Self::Texture
    ); }
Expand description

Abstraction for platform dependent texture reference

Associated Types

The native texture type.

Required methods

Bind native texture to an egui texture id.

Change what texture the given id refers to.

Implementors