1
0
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:
Emil Ernerfeldt
2021-04-01 23:07:58 +02:00
parent facb01a7c2
commit 1c955e56fe
4 changed files with 6 additions and 22 deletions

View File

@@ -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),