1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutCloseFunc — Window destruction callback.
5

LIBRARY

7     OpenGLUT - windowcallback
8

SYNOPSIS

10     #include <openglut.h>
11
12     void
13     glutCloseFunc(void( *callback )( void ));
14

PARAMETERS

16      callback     Client window destruction hook.
17

DESCRIPTION

19     When a window is destroyed by user-action in traditional GLUT, the appli‐
20     cation terminates.  In freeglut and OpenGLUT, the application can choose
21     to persist and treat the window close event as a normal event.  This
22     callback is how that event is transmitted to the application.
23
24     This callback is bound to the  current window  .
25

CAVEATS

27     This function is  exactly   the same as glutWMCloseFunc(), which has been
28     deprecated. This function should be used instead.
29

TODO

31     There needs to be some work to rationalize the behavior when a window is
32     closed.
33

SEE ALSO

35     glutDestroyWindow(3)
36
37
38
39
40                                     Epoch
Impressum