OpenGL with two monitors

I want to develop one OpenGL application that uses two monitors for display. However, if I specify the window size in glutInitWindowSize() as the size that is the sum of the two monitors, then the result window is always on the same monitor, although I can drag the window to another monitor or change the shape.

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

+4
source share
1 answer

This is not OpenGL, which limits the size of the window, it is GLUT .

You need to figure out a way to change the way GLUT is installed and create a window. On Windows, it seems that you can use the win32 API to change these parameters at runtime.

+5
source

Source: https://habr.com/ru/post/1480838/


All Articles