glutidlefunc(3) - Linux man page

Name

glutIdleFunc - 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)

BSD Epoch BSD