Advertisement

Glut fullscreen - two monitors

Started by February 08, 2006 08:25 AM
1 comment, last by zsunshine 18 years, 8 months ago
Hi, I am trying to develop a OpenGL application that can run on a second monitor. I can drag a normal window across to the second monitor, but what I really want is a way to specify which monitor the fullscreen command sends the application to. I am using Glut as the windowing toolkit. Does any one if it is possible using glutFullscreen or glutGameMode ?? Thanks, Tom
Perhaps you could do something based on the reshape event in GLUT. It might be usefull for you to just quit using GLUT. The NeHe examples show how to do a platform-specific windowing toolkit and it is fairly easy.

If not, I don't know of any way in GLUT to know that the user hit the "maximize" button on the window because that is not a "window" event but a GUI event. The only thing you would get in GLUT is a reshape/resize event...to the best of my knowledge.
Advertisement
hi
hope this helps:
///////////////////////////
glutInitWindowSize(2048, 768);
glutCreateWindow("glut");
HWND hwnd = FindWindow(NULL, "glut");
SetWindowLong(hwnd, GWL_style, WS_POPUP | WS_MAXIMIZE);
SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, 2048, 768, SWP_SHOWWINDOW);
//////////////////////////

This topic is closed to new replies.

Advertisement