the Callbackmaker demo, with its window close callback, is a nice place
to test glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE,GLUT_ACTION_CONTINUE_EXECUTION) working fine :) git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1373 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
1b92446cdd
commit
fc4d999897
@ -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 ) ;
|
||||
|
Reference in New Issue
Block a user