1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

[user textures] Add custom texture/image support

* Each Traingles mesh comes with a TextureId
* ui.image(...) to show an image/texture
* Up to backend what to do with user textures
This commit is contained in:
Emil Ernerfeldt
2020-09-10 16:48:01 +02:00
parent 5ba420988f
commit 02ef0cd9d5
10 changed files with 201 additions and 72 deletions

View File

@@ -53,9 +53,8 @@ TODO-list for the Egui project. If you looking for something to do, look here.
* [ ] Positioning preference: `window.preference(Top, Right)`
* [ ] Keeping right/bottom on expand. Maybe cover jitteryness with quick animation?
* [ ] Make auto-positioning of windows respect permanent side-bars.
* [ ] Image support
* [ ] user-chosen texture ids (so people can show thing with mipmaps and whatnot)
* [ ] `enum TextureId { Egui, User(u64) }` added to `Triangles`
* [/] Image support
* [x] Show user textures
* [ ] API for creating a texture managed by Egui
* Backend-agnostic. Good for people doing Egui-apps (games etc).
* [ ] Convert font texture to RGBA, or communicate format in initialization?