From: Aleksandar D. <adonev@Math.Princeton.EDU> - 2003-07-07 17:53:35
|
Stephen J Baker wrote: > I would call this 'glutExit' and require all applications to call it before > they exit to the OS (or any other time they don't want any more windows) - > and have freeglut call it whenever it does an automatic exit. You mean when freeglut calls exit(0) or exit(1) itself, rather then on exit from the mainLoop? I perfectly agree with this plan. > We'd want some kind of a flag so we can survive glutExit being called > twice, and error if important glut functions are called after glutExit - This already happens after the automatic deinitialization at the end of the mainLoop, though via assertions (the current window becomes null and some assertion fails) only. We need a clear flag which says whether freeglut is running and also a way to inquire about it. Best, Aleksandar |