View Full Version : closing a glut window from within my code?

10-23-2002, 12:15 AM
Im having trouble working out how to do this?
I have a glut window which is being opened from within my code (a simulation of sorts) this window then displays the required output etc, but then how do i close this window when im done with it, and cause the program control flow to return to the code which first created the glut window?
All ive managed so far is either for the window just to stay, and program flow not to return to my code, or, for the whole program to quit out, both of which are not acceptable. So any help is greatly appreciated http://www.opengl.org/discussion_boards/ubb/smile.gif


10-23-2002, 12:59 AM
do a search on here, there is a hacked function that allows you to exit the main loop without killing the whole prog.

Rob Fletcher
10-24-2002, 02:20 AM
There is a "seriously modified" version available from my website. Check out:

Hope it helps.