mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Some code cleanup
This commit is contained in:
@@ -246,6 +246,9 @@ pub struct IntegrationInfo {
|
||||
/// How to allocate textures (images) to use in [`egui`].
|
||||
pub trait TextureAllocator {
|
||||
/// Allocate a new user texture.
|
||||
///
|
||||
/// There is no way to change a texture.
|
||||
/// Instead allocate a new texture and free the previous one with [`Self::free`].
|
||||
fn alloc_srgba_premultiplied(
|
||||
&mut self,
|
||||
size: (usize, usize),
|
||||
|
||||
Reference in New Issue
Block a user