glutCloseFunc (3) - Linux Manuals
glutCloseFunc: Window destruction callback.
NAME
glutCloseFunc - Window destruction callback.LIBRARY
OpenGLUT - windowcallbackSYNOPSIS
In openglut.h Ft void Fn glutCloseFunc void( *callback )( void )PARAMETERS
Bf Em
This callback is bound to the
Bf Li
DESCRIPTION
When a window is destroyed by user-action in
traditional GLUT, the application terminates.
In freeglut and OpenGLUT, the application can
choose to persist and treat the window close
event as a normal event. This callback is
how that event is transmitted to the application.
CAVEATS
This function is
Bf Em
TODO
There needs to be some work to rationalize the behavior when a window is closed.