rpxmaster
09-20-2002, 08:46 PM
Yeah, I'm having a problem getting my program to do this correctly. I'm trying to write a 'toggle full screen' function for my program where it kills the window that was created using glutCreateWindow("window title"); and displays my program in fullscreen using glutEnterGameMode(); Don't know if this is even the correct way, but obviously, it's not, because it kills my entire program when I run the code, and I get these command line errors as well:
GLUT: Warning in C:\DIR\OF\PROGRAM\PROGRAM.EXE: The following is a new check for GLUT 3.0; update your code.
GLUT: Fatal Error in C:\DIR\OF\PROGRAM\PROGRAM.EXE: redisplay needed for window 1, but no display callback.
Here's what my code looks like:
if (glutGameModeGet(GLUT_GAME_MODE_POSSIBLE)) {
glutDestroyWindow(hWnd);;
glutEnterGameMode();
}
...where hWnd is the value returned by glutCreateWindow("window title"); and I'm using GLUT 3.7.6.
What am I doing wrong here?
[This message has been edited by rpxmaster (edited 09-20-2002).]
GLUT: Warning in C:\DIR\OF\PROGRAM\PROGRAM.EXE: The following is a new check for GLUT 3.0; update your code.
GLUT: Fatal Error in C:\DIR\OF\PROGRAM\PROGRAM.EXE: redisplay needed for window 1, but no display callback.
Here's what my code looks like:
if (glutGameModeGet(GLUT_GAME_MODE_POSSIBLE)) {
glutDestroyWindow(hWnd);;
glutEnterGameMode();
}
...where hWnd is the value returned by glutCreateWindow("window title"); and I'm using GLUT 3.7.6.
What am I doing wrong here?
[This message has been edited by rpxmaster (edited 09-20-2002).]