Hello all. My program is exhibiting some strange behavior - all help appreciated.
Basically, I am using double-buffering and glutFullScreen together. The program runs great. But when I exit, the program doesn’t just exit. It reverts to the prior frame of animation, THEN exits. Search though I may, I can’t see why. Neither can I see how to fix this simple annoying problem.
When I am not using glutFullScreen, the program seems to just exit when I tell it to. Imbedded tests that I have done show that the reversion is not a “real” render (the display function is NOT called). But it looks so lame during an animation to see a character moving across the screen and then Backtrack when I hit exit! For no reason.
In hopes that someone can explain the (presumed) simplicities of glutFullScreen and double-buffering, I have created a simple example. Please load it and try it to see what I mean. The example program shows just a sphere. Hitting any key toggles between a fully-solid sphere and a wireframe version. If you stop on the solid one, then hit ESC, you will see the afterimage of the prior (wire)frame before the program closes.
I am using openGL 1.3 I think and you will need GLUT as well. Code was written using the free command-line Borland Compiler.
In the following post I am placing the code itself. The problem might be anywhere, but the code is as short as I could make it.
Someone must know how to use glutFullScreen!
Thanks a million,