SecondHalfGames / yakui

yakui is a declarative Rust UI library for games
Apache License 2.0
222 stars 18 forks source link

Provide API for uploading images from regular code #91

Open LPGhatguy opened 1 year ago

LPGhatguy commented 1 year ago

Currently, the sample code uploads all of its images upfront and then uses them later.

We should also support an API that lets code outside of widgets upload images, potentially paired with use_state. We could also build an API for doing something similar with yakui-wgpu for textures that will already be present on the GPU.