PDA

View Full Version : How to detect a glut close window event?



jojo555
04-05-2004, 02:19 AM
Hi.
Can someone tell me how to detect that a glut window is being closed so that i can process some commands before exiting. I have allocated memory dynamically to objects using new , which i want to deallocate before the program exits.

Thanks.

malancha
04-05-2004, 02:29 AM
Take a look at this thread (http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=2;t=001209) -- I think it's got what you're looking for.