GLUTCLOSEFUNC
Section: C Library Functions (3)
Updated: LOCAL
Index
Return to Main Contents
BSD mandoc
NAME
glutCloseFunc
- Window destruction callback.
LIBRARY
OpenGLUT - windowcallback
SYNOPSIS
In openglut.h
Ft void
Fn glutCloseFunc void( *callback )( void )
PARAMETERS
Bf Em
callback
Ef
Client window destruction hook.
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.
This callback is bound to the
Bf Li
current window
Ef
.
CAVEATS
This function is
Bf Em
exactly
Ef
the same as glutWMCloseFunc(), which has been deprecated. This function should be used instead.
TODO
There needs to be some work to rationalize the behavior when a window is closed.
SEE ALSO
glutDestroyWindow(3)