Skip to content
Discussion options

You must be logged in to vote

Sorry for a delayed reply, was away for most of the last week and this notification slipped through.

audio synths and effects and such!

Very cool!

I guess here any window with the same mDeviceContext can share an mWglContext and then also the Magnum::Platform::GLContext?

As long as all windows use the same OpenGL context, you can (and should) have just one Platform::GLContext for all of them. And then the trick is in calling wglMakeCurrent() with the same GL context (second argument) but different window surface (first argument) in order to render to the other window.

I'm not sure how exactly things work in the WGL land, but I suppose it'd involve having multiple mDeviceContexts, one …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mosra
Comment options

You must be logged in to vote
2 replies
@mosra
Comment options

mosra Mar 4, 2026
Maintainer

@fenggy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants