Trait epi::NativeTexture
source · [−]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
Required methods
fn register_native_texture(&mut self, native: Self::Texture) -> TextureId
fn register_native_texture(&mut self, native: Self::Texture) -> TextureId
Bind native texture to an egui texture id.
fn replace_native_texture(&mut self, id: TextureId, replacing: Self::Texture)
fn replace_native_texture(&mut self, id: TextureId, replacing: Self::Texture)
Change what texture the given id refers to.