1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutMenuDestroyFunc — Destruction callback for menus.
5

LIBRARY

7     OpenGLUT - menucallback
8

SYNOPSIS

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

PARAMETERS

16      callback     Client menu destruction hook.
17

DESCRIPTION

19     When a menu is destroyed, OpenGLUT will call this hook, if defined on
20     that menu.
21
22     This callback is  not   bound to any window.
23
24     This callback  is   bound to a specific menu.
25

CAVEATS

27     For emphasis, we repeat: This callback does not bind to any window.
28

TODO

30     What on Earth is rationale for this feature? Menus should only be
31     destroyed when we ask them to be destroyed, or when their window is
32     destroyed. In the former case, we already know that the menu is being
33     destroyed because we requested it.  In the latter case, it is easy for
34     the client to track that if they care, via window-destruction callbacks.
35

SEE ALSO

37     glutCloseFunc(3) glutCreateMenu(3) glutDestroyMenu(3)
38
39
40
41
42                                     Epoch
Impressum