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
相关问题
- Is GLFW designed to use without LWJGL (in java)?
- Inheritance impossible in Windows Runtime Componen
- glDrawElements only draws half a quad
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Converting glm::lookat matrix to quaternion and ba
- Windows 8.1 How to fix this obsolete code?
- Behavior of uniforms after glUseProgram() and spee
- Keep constant number of visible circles in 3D anim
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.
The same way as you would create one window, except you should do it multiple times :
This example shows how to set the same callback to render in both windows. But you can use different functions for windows.