I'd like to have two different windows with different stuff drawn on them. I'm struggling with this. Is there a small example of how to handle multiple windows/multiple contexts?
Here's what I'm trying to do looks like in pure OpenGL:
foreach w in windows:
foreach ctx in w.contexts:
ctx.make_current(w)
do_opengl_stuff()
glFlush()
It's not clear how to define multiple contexts. I assume NewContext() uses current current context, so I tried
Hi,
Thanks for this great library!
I'd like to have two different windows with different stuff drawn on them. I'm struggling with this. Is there a small example of how to handle multiple windows/multiple contexts?
Here's what I'm trying to do looks like in pure OpenGL:
It's not clear how to define multiple contexts. I assume NewContext() uses current current context, so I tried
But it didn't work. The text is drawn only in the first window.
Thanks