I need two or more opengl window for my project,I know that I can use subwindowing a
main window but before that I wish to know:
How can I create and manage more than one opengl window under linux. How can I send say sin(x) to window 1 and cos(x) to window 2 at run time and change the order or send anything else.
If you are using a QT or GTK+ for your software, read their documentation, it should be fairly simple to do.
If your writing your own code from scratch (XLib), then just set up 2 differnt windows, and 2 different GLX Contexts. I’m guessing you can swap them with glXMakeCurrent…