mirror of
https://github.com/storytold/egui.git
synced 2026-11-19 09:01:37 +01:00
`ColorImage` fields are now private. Use `resolution()`, `pixels()`, `pixels_mut()`, and `source_size()` instead. Also renames `size` to `resolution` in several texture-related APIs (`ImageData`, `TextureHandle`, `TextureMeta`, `TextureAtlas`, `Fonts::font_image_resolution`). `ColorImage::new` now panics if `width * height != pixels.len()`. ## Motivation A) Make `ColorImage` always valid B) Stop confusing using the confusing word `size` where `resolution` is better