I would like to know how to open multiple OpenGL/Glut windows.
And I mean multiple windows at the same time
not subwindows and
not update the same window
Windows – Multiple Windows OpenGL/Glut
glutopenglwindows
Related Topic
- C# – How to update the current line in a C# Windows Console App
- Python – How to install pip on Windows
- How to install GLUT and OpenGL in Visual Studio 2012
- Windows – How to upgrade Git on Windows to the latest version
- Windows – Filename too long in Git for Windows
- Iphone – UIButton with image losing its newly set image
Best Answer
While I believe the above answer is accurate, it is a little more complex then needed and it might be difficult when later having to deal with moving between the windows (say, for example, when drawing into them). This is what we've just done in class:
You will notice I'm using the same create window function but loading it into a GLint. That is because when we create a window this way, the function actually returns a unique GLint used by glut to identify windows.
We have to get and set windows to move between them and perform appropriate drawing functions. You can find the calls here.