Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gluttimerfunc(3glut) [mojave man page]

glutTimerFunc(3GLUT)						       GLUT						      glutTimerFunc(3GLUT)

NAME
glutTimerFunc - registers a timer callback to be triggered in a specified number of milliseconds. SYNTAX
#include <GLUT/glut.h> void glutTimerFunc(unsigned int msecs, void (*func)(int value), value); ARGUMENTS
msecs Number of milliseconds to pass before calling the callback. func The timer callback function. value Integer value to pass to the timer callback. DESCRIPTION
glutTimerFunc registers the timer callback func to be triggered in at least msecs milliseconds. The value parameter to the timer callback will be the value of the value parameter to glutTimerFunc. Multiple timer callbacks at same or differing times may be registered simultane- ously. The number of milliseconds is a lower bound on the time before the callback is generated. GLUT attempts to deliver the timer callback as soon as possible after the expiration of the callback's time interval. There is no support for canceling a registered callback. Instead, ignore a callback based on its value parameter when it is triggered. SEE ALSO
glutIdleFunc AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutTimerFunc(3GLUT)

Check Out this Related Man Page

glutReshapeFunc(3GLUT)						       GLUT						    glutReshapeFunc(3GLUT)

NAME
glutReshapeFunc - sets the reshape callback for the current window. SYNTAX
#include <GLUT/glut.h> void glutReshapeFunc(void (*func)(int width, int height)); ARGUMENTS
func The new reshape callback function. DESCRIPTION
glutReshapeFunc sets the reshape callback for the current window. The reshape callback is triggered when a window is reshaped. A reshape callback is also triggered immediately before a window's first display callback after a window is created or whenever an overlay for the window is established. The width and height parameters of the callback specify the new window size in pixels. Before the callback, the cur- rent window is set to the window that has been reshaped. If a reshape callback is not registered for a window or NULL is passed to glutReshapeFunc (to deregister a previously registered callback), the default reshape callback is used. This default callback will simply call glViewport(0,0,width,height) on the normal plane (and on the overlay if one exists). If an overlay is established for the window, a single reshape callback is generated. It is the callback's responsibility to update both the normal plane and overlay for the window (changing the layer in use as necessary). When a top-level window is reshaped, subwindows are not reshaped. It is up to the GLUT program to manage the size and positions of subwin- dows within a top-level window. Still, reshape callbacks will be triggered for subwindows when their size is changed using glutReshapeWin- dow. SEE ALSO
glutDisplayFunc, glutReshapeWindow AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutReshapeFunc(3GLUT)
Man Page