Scroll to navigation

GLUTMENUSTATEFUNC(3) Library Functions Manual (local) GLUTMENUSTATEFUNC(3)

NAME

glutMenuStateFuncDeprecated variant of glutMenuStatusFunc()

LIBRARY

OpenGLUT - deprecated

SYNOPSIS

#include <openglut.h>

void
glutMenuStateFunc(void( *callback )( int status ));

PARAMETERS


callback

Client menu status hook.

DESCRIPTION

Broadly, OpenGLUT operates in two modes. At any given time, it is either in menu mode (with a popup menu display, possibly with subitems) or it is not.

When moving from non-menu to menu status,


callback

(if defined) will be called with

GLUT_MENU_IN_USE

. Conversely, when moving from menu to non-menu status,

callback

(if defined) will be called with

GLUT_MENU_NOT_IN_USE

.

This callback is bound to


both

the

current window

and the

current menu

.

CAVEATS

Obsolete. Depcreated.

BUGS

Your callback is not actually called presently.

SEE ALSO

glutMenuStatusFunc(3)