From: Lou H. <lh...@ia...> - 2002-02-02 11:00:37
|
I've been trying to get glut to wait for a user input before the = window closes at the end of my program, but I can't do it. I have tried = making a stop condition to let the program "know" that it has ended, and = then test the stop condition in the keyboard function; that doesn't = work. I've also tried using getchar(), but that just freezes the = program. How do I get glut to wait for user input in a function other = than my keyboard callback function? -Lou P.S. The program is my Pong program. If you haven't seen it, it's = probably because it's not up on source forge yet. |