Replies: 1 comment 1 reply
-
Generally this sounds reasonable. Perhaps the winit backend‘s api should provide a hook. Could you describe your use-case a little? (note that with the next winit release create_window() can’t be called like that anymore, only on an active event loop after receiving can_create_surfaces()) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I want to run a component as a Window today, I have to do this:
This of course, automatically handles creating a window behind the scenes for me. Perhaps, instead, I would like to do this myself by hand, but, cannot as there is no way to pass such a parameter. What I'm asking for is to perhaps be able to initialize the window myself, then pass the handle to the component to be used and inhabited by the component I'm running. Using
winit
, I'd be able to do something like this maybe:Does this sound reasonable? This doesn't take into account alternative backends like Qt, but for my use case, I only need the default, standard backend. It also might be more involved depending on whether creating windows for other "renderers" is any different than creating one from
winit
.Beta Was this translation helpful? Give feedback.
All reactions