glutWindowStatusFunc (3) - Linux Manuals

glutWindowStatusFunc: Sets the window status callback.

NAME

glutWindowStatusFunc - Sets the window status callback.

LIBRARY

OpenGLUT - windowcallback

SYNOPSIS

In openglut.h Ft void Fn glutWindowStatusFunc void( *callback )( int state )

PARAMETERS

Bf Em
 callback Ef
    Client window status hook.

DESCRIPTION

When the visibility status of your window changes, OpenGLUT either invokes the Bf Sy
 callback Ef
 registered by this function or the Visibility Bf Sy
 callback---or Ef
 neither, if you have not registered either callback.

This differs from glutVisbilityFunc() in that the callback has three states, rather than two, that it may receive. These states are:


  Bf Sy
 GLUT_VISIBLE Ef
       (every pixel visible)
  Bf Sy
 GLUT_FULLY_COVERED Ef
 (every pixel obscured)
  Bf Sy
 GLUT_HIDDEN Ef
        (intermediate)

The callback is bound to the Bf Li
 current window Ef
 .

CAVEATS

Makes glutVisibilityFunc() obsolete.

SEE ALSO

glutVisibilityFunc(3)