the Callbackmaker demo, with its window close callback, is a nice place
authorDiederick Niehorster <dcnieho@gmail.com>
Tue, 24 Jul 2012 17:43:12 +0000 (17:43 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Tue, 24 Jul 2012 17:43:12 +0000 (17:43 +0000)
to test glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE,GLUT_ACTION_CONTINUE_EXECUTION)
working fine :)

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1373 7f0cb862-5218-0410-a997-914c9d46530a

progs/demos/CallbackMaker/CallbackMaker.c

index 5abd8ee..deb8f4b 100644 (file)
@@ -476,6 +476,7 @@ main(int argc, char *argv[])
   glutInitWindowPosition ( 140, 140 );
   glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE );
   glutInit(&argc, argv);
+  glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE,GLUT_ACTION_CONTINUE_EXECUTION);
 
   freeglut_window = glutCreateWindow( "Callback Demo" );
   printf ( "Creating window %d as 'Callback Demo'\n", freeglut_window ) ;