mach
mach copied to clipboard
Support multiple windows on desktop platforms only
I'd like to support multiple windows on desktop platforms (e.g. for the editor to have breakout windows that dock/undock if you drag'n'drop a window onto the main one.)
Of course, multiple windows will not work on most other platforms (at least mobile, consoles, etc.) - WASM would be nice-to-have.
Here's a starting point perhaps?
- Add
Core.createWindow, it returns a new*Windowtype (which I imagine would largely have identical fields toCoretoday.) - Add
Window.setOptions,Window.setShouldClose,Window.getFramebufferSize,Window.getSize,Window.close
Then inside your app's pub fn init or pub fn update you could call this API to create a new window and render to it.