SysTutorials

Linux Manual Pages › Section 3

glutmenustatefunc(3)

glutMenuStateFunc – Deprecated variant of glutMenuStatusFunc()

Library

OpenGLUT – deprecated

Synopsis

In openglut.h Ft void Fn glutMenuStateFunc void( *callback )( int status )

Parameters

Bf Em
 callback Ef
    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, Bf Sy
 callback Ef
 (if defined) will be called with Bf Sy
 GLUT_MENU_IN_USE Ef
 .  Conversely, when moving from menu to non-menu status, Bf Sy
 callback Ef
 (if defined) will be called with Bf Sy
 GLUT_MENU_NOT_IN_USE Ef
 .

This callback is bound to Bf Em
 both Ef
  the Bf Li
 current window Ef
  and the Bf Li
 current menu Ef
 .

Caveats

Obsolete. Depcreated.

Bugs

Your callback is not actually called presently.

See Also

glutMenuStatusFunc(3)