1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutMenuStatusFunc — Modern variant of glutMenuStateFunc()
5

LIBRARY

7     OpenGLUT - menucallback
8

SYNOPSIS

10     #include <openglut.h>
11
12     void
13     glutMenuStatusFunc(void( *callback )( int status, int x, int y ));
14

PARAMETERS

16      callback     Client menu status hook.
17

DESCRIPTION

19     Broadly, OpenGLUT operates in two modes.  At any given time, it is either
20     in menu mode (with a popup menu display, possibly with subitems) or it is
21     not.
22
23     When moving from non-menu to menu status,  callback  (if defined) will be
24     called with  GLUT_MENU_IN_USE  .  Conversely, when moving from menu to
25     non-menu status,  callback  (if defined) will be called with
26     GLUT_MENU_NOT_IN_USE  .
27
28     This differs from glutMenuStateFunc() in that  callback  is also given
29     the  x  and  y  coordinates of the mouse when the menu state transition
30     took place.
31
32     This callback is bound to  both   the  current window   and the  current
33     menu  .
34

BUGS

36     Your callback is not actually called presently.
37

SEE ALSO

39     glutMenuStateFunc(3)
40
41
42
43
44                                     Epoch
Impressum