I want to develop one OpenGL application that is using the two monitors for display. However, if I specify the window size in glutInitWindowSize() to be the size which is the sum of the two monitors, then the result window is still always in one monitor, even though I can drag the window to another monitor or reshape.

Does OpenGL automatically detect another monitor and use the total size of the two monitors?

有帮助吗?

解决方案

It's not OpenGL that is limiting the size of the window, it's GLUT.

You have to figure out a way to change the way GLUT sets up and creates a window. On Windows, it seems you can use win32 API to change these settings during runtime.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top