Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL with dual monitors

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?

like image 442
Yan Li Avatar asked May 15 '13 03:05

Yan Li


1 Answers

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.

like image 50
karlphillip Avatar answered Sep 28 '22 00:09

karlphillip