1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00
This commit is contained in:
Emil Ernerfeldt
2021-12-28 13:22:01 +01:00
parent f919b0cc05
commit cda4c8ba13
6 changed files with 14 additions and 13 deletions

View File

@@ -419,11 +419,10 @@ pub trait NativeTexture {
/// The native texture type.
type Texture;
/// Bind native texture to egui texture
/// Bind native texture to an egui texture id.
fn register_native_texture(&mut self, native: Self::Texture) -> egui::TextureId;
/// Change id's actual pointing texture
/// only for user texture
/// Change what texture the given id refers to.
fn replace_native_texture(&mut self, id: egui::TextureId, replacing: Self::Texture);
}