SecondHalfGames / yakui

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

Support for Multiple Surfaces #83

Open LPGhatguy opened 2 years ago

LPGhatguy commented 2 years ago

Currently, yakui assumes that UI is drawn in one coordinate space, on a subset of one contiguous rectangular surface.

It's often useful to draw UI in multiple different places, like projected in the world, in a separate window, or in a scrollable and zoomable canvas.

LPGhatguy commented 1 year ago

The PaintLayer API introduced in 92e0b270e728cb9a20a55065bdd525b5b7533155 might be a good step in this direction. We could add a window or surface ID to a layer and use that to dispatch calls to the right places.