Closed merehap closed 1 year ago
OK, for now I'm just using a local copy of the library that passes in WindowId as a Res, rather than hard-coding it to primary. I won't submit a PR since I assume you have something more elegant in mind than that for the actual feature.
Go ahead and submit a PR. I'm not actively working on this, just in my free time!
OK, I just concluded my research. Take most of this with a grain of salt since I'm fully a Bevy-amateur.
Points 1 and 2 mean that I'm going to migrate my project from bevy/pixels to egui/winit/pixels. I might switch back once Bevy has a better multi-window solution, but I'm going to go the easier route for now.
I'll leave this issue open in case you want to use it for tracking in the future. If not, feel free to close it.
Thanks for doing this research @merehap.
There are some separate upstream bevy changes I'm waiting for that will likely require a large refactor of this library. Bevy 0.6 separated rendering from regular systems, but this is not exposed for plugins yet. I'm wanting to implement something like this for bevy_pixels and likely to introduce breaking changes to the API.
So given this future work I want to do (which is somewhat related to multi-window support), I'll put this issue on hold until then.
Hi @merehap, I've just published 0.9.0 and it now includes support for multiple windows. The multiple_windows
example shows you how to use this.
I noticed that multiple windows support is in the TODO list. My current project has reached the point where I need multiple window support, so I was wondering if that would be coming to this library in the near future.
Either way, is there a better work-around than just rendering the second window through a system unrelated to bevy_pixels?
Thanks for making a useful library!