glutdisplayfunc(3) - Linux man page
Name
glutDisplayFunc - Sets the Display callback for the current window.
Library
OpenGLUT - windowcallback
Synopsis
#include <openglut.h>
void
glutDisplayFunc(void( *callback )( void ));
-
Parameters
callback Client function for normal redisplay event.
Description
Sets the display callback for the current window . All windows, including subwindows, must have a display callback registered. OpenGLUT will call the callback function whenever it thinks that the window may require updating.
This callback is bound to the current window .
Caveats
Unlike most callbacks, it is illegal to try to disable the display callback by setting it to NULL .
Multiple redisplays may be coalesced into a single event for invoking the callback only once.
See Also
glutpostredisplay(3) glutoverlaydisplayfunc(3)
BSD Epoch BSD