New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the way you get a window #175
Comments
Is this API still compatible with multi-window applications on desktop platforms? |
I don't really know how the API would look like yet. If you or someone happens to have a suggestion, that would be welcome. |
Well, I would say that such a fundamental difference in platform behaviour should be reflected in the API. So getting the single Android window should be something different than creating a window on a regular desktop. In my opinion either should fail on the wrong platform. On top of that we could provide a platform-agnostic wrapper function that gets the single window on Android, while it creates some default window on another platform. Let's just make sure that we do not impose any limitations of mobile apps on desktop apps. |
Closing for rust-windowing/winit#33 |
@tomaka You can have multiple windows (if you're referring to |
@seivan your comment would have better visibility on the relevant winit issue (rust-windowing/winit#33). |
@francesca64 Thanks! Wrote a bit more there. |
On some platforms like Android, iOS, emscripten, etc. you only ever get one "window", and it is already created when you start.
Therefore the API should be more like
glutin::get_window()
instead ofglutin::Window::new
.The text was updated successfully, but these errors were encountered: