Reputation: 431
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?
Upvotes: 5
Views: 2159
Reputation: 93410
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.
Upvotes: 5