Managing opengl contexts for more than one window

Started by
10 comments, last by JohnnyCode 7 years, 8 months ago

Thanks again all.

?Based on the comments I'm not going to try to support multiple windows :) My project doesn't need them anyway.

My problem is that I identified 'Window' as being a good abstraction of something I'd need my application to have and a common one. And once I did that it because natural to ask does it make sense to have more than one window in an application.... Yes, it makes sense.
And then the issue of how to implement it nagged and nagged at me leading to complete coding paralysis!

I have decided that I have no need to implement multiple windows/contexts in my project so I will not do.
?Having decided that it seems natural to merge window and context management into my 'Game' class as they don't really need their own identity and it's natural to have a single "Game" object created in a program but not so much a 'Window'

Advertisement

Thanks again all.

?Based on the comments I'm not going to try to support multiple windows :) My project doesn't need them anyway.

You can render to any amount of windows by their window handle being identified and provided to a context, as context can get succesfully updated to output onto a new window.

This window can be a background of a modal form etc (I once even hijacked IE browser window to output my Present(), this was in DX though)

Multiple separate contexts do not make much sense unless they make sense.

This topic is closed to new replies.

Advertisement