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

Multiple Windows #62

Open
rcurtis opened this issue Mar 7, 2016 · 4 comments
Open

Multiple Windows #62

rcurtis opened this issue Mar 7, 2016 · 4 comments
Labels
Milestone

Comments

@rcurtis
Copy link

rcurtis commented Mar 7, 2016

I am currently evaluating your drawing engine for a work project. One of my requirements is to be able to open/close multiple windows. Looking at the implementation this looks fairly trivial, but I don't have a very full understanding of the entire engine. Let me know what you think!

Robert

@TheCherno
Copy link
Owner

Multiple windows are currently not supported. You're right, it wouldn't be very difficult to add support for that, but it would take some work, since quite a few things rely on there being a single window.

Unfortunately I don't have time to take a look at this anytime soon, but feel free to see what you can do.

@Mebourner
Copy link

@rcurtis U'll store a map/array of windows, but each will need their own context. You'll need render commands to know which context they belong to. It gets quite complicated to implement, and even more time consuming if you need multi-platform support.

@rcurtis
Copy link
Author

rcurtis commented Mar 11, 2016

@Mebourner I believe you can use the same context and just make it current on each window... similar to how SFML does it. So yes, you will need a list or the windows. You iterate over them calling some MakeCurrent type function and then execute your drawing. That doesn't sound very complicated.

@rcurtis
Copy link
Author

rcurtis commented Mar 11, 2016

@TheCherno Yes the stumbling block seems to be all the services that assume only 1 window, stuff like input handling etc.

@TheCherno TheCherno added this to the Backlog milestone Apr 13, 2016
@TheCherno TheCherno changed the title Multiple WIndows Multiple Windows Apr 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants