mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Make epi::Frame cloneable so you can allocate textures in other threads (#999)
Closes https://github.com/emilk/egui/issues/673 Also adds `epi::Image`
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
use wasm_bindgen::prelude::JsValue;
|
||||
|
||||
pub trait Painter {
|
||||
fn as_tex_allocator(&mut self) -> &mut dyn epi::TextureAllocator;
|
||||
fn set_texture(&mut self, tex_id: u64, image: epi::Image);
|
||||
|
||||
fn free_texture(&mut self, tex_id: u64);
|
||||
|
||||
fn debug_info(&self) -> String;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user