GLUTIDLEFUNC

Section: C Library Functions (3)
Updated: LOCAL
Index Return to Main Contents

BSD mandoc
 

NAME

glutIdleFunc - Sets the global idle callback.  

LIBRARY

OpenGLUT - idletimer  

SYNOPSIS

In openglut.h Ft void Fn glutIdleFunc void( *callback )( void )  

PARAMETERS

Bf Em
 callback Ef
    Client function for idle event.  

DESCRIPTION

When OpenGLUT's glutMainLoop() is doing nothing else, it checks to see if an ``idle'' callback set. If so, OpenGLUT invokes that callback.

This callback is Bf Em
 not Ef
  bound to any window.

 

CAVEATS

There is at most Bf Em
 one Ef
  idle callback for your entire application.

 

SEE ALSO

glutTimerFunc(3) glutMainLoop(3) glutMainLoopEvent(3)