Skip to content
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

Add a multi-window example #4

Open
aclysma opened this issue Nov 5, 2019 · 3 comments
Open

Add a multi-window example #4

aclysma opened this issue Nov 5, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@aclysma
Copy link
Owner

aclysma commented Nov 5, 2019

This library would ideally handle multiple windows easily. Some structural changes may be necessary to handle this, and an example should be added to demonstrate how to do it.

@aclysma aclysma added the enhancement New feature or request label Nov 28, 2019
@kasper0406
Copy link
Contributor

I tried creating a multi-window application.
I managed to do it after making the following change #105

@aclysma
Copy link
Owner Author

aclysma commented Jan 6, 2022

For what it's worth, ideally a multi-window solution would only initialize the API once. Initializing the API per-window prevents sharing resources between the windows (i.e. upload a texture to the GPU once and render it on both windows.) And any initialization skia does will need to be performed once per window (for example, building vulkan graphics pipelines.

That said, this is likely the simplest way to have multiple windows as long as you can live with this limitation.

@ctrlcctrlv
Copy link

We're not sure we can handle that limitation in MFEK, chiefly because it'd require multiple instantiation of Dear ImGui. Multiple windows has been something I've been wanting to explore for a while. @kasper0406, feel free to email me—funding is available for work in this area, if you write patches freelance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants