glutIdleFunc - Man Page

Sets the global idle callback.

Library

OpenGLUT - idletimer

Synopsis

#include <openglut.h>

void
glutIdleFunc(void( *callback )( void ));

Parameters


callback

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


not

bound to any window.

Caveats

There is at most


one

idle callback for your entire application.

See Also

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

Referenced By

glutMainLoop(3), glutMainLoopEvent(3), glutTimerFunc(3).