Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gluttimerfunc(3) [centos man page]

UNTITLED
LOCAL UNTITLED NAME
glutTimerFunc -- Sets the Timer callback for the current window. LIBRARY
OpenGLUT - idletimer SYNOPSIS
#include <openglut.h> void glutTimerFunc(unsigned int msec, void( *callback )( int data ), int data); PARAMETERS
msec Milliseconds till invocation. callback Client function for timer event. data Arbitrary data; passed to callback . DESCRIPTION
After at least msec milliseconds, OpenGLUT will call callback , passing in your user-supplied data parameter. OpenGLUT will call your function only once. This callback is not bound to any window. CAVEATS
Unlike most other callbacks, timers only occur once. Unlike most other callbacks, you cannot deregister a timer callback. Unlike most other callbacks, you can register an arbitrary number of timers. SEE ALSO
glutIdleFunc(3) glutMainLoop(3) glutMainLoopEvent(3) Epoch

Check Out this Related Man Page

UNTITLED
LOCAL UNTITLED NAME
glutCreateWindow -- Create a new top-level window LIBRARY
OpenGLUT - window SYNOPSIS
#include <openglut.h> int glutCreateWindow(const char* title); PARAMETERS
title Title for created window DESCRIPTION
This function sends a request for a window to be constructed. OpenGLUT immediately constructs a data structure to track further events with the window, on the theory that eventually the window manager will get back to us with a real window. This allows us to begin registering callbacks immediately. In fact, you must register a display callback via glutDisplayFunc() before you enter glutMainLoop(). For onscreen windows, you should not depend upon the window concretely existing or being visibile until you are told that it exists and is visible via a registered callback. The return value is an int. It should be positive for valid windows or 0 if failure occurred for some reason (Though traditional GLUT tends to bail out and abort rather than returning errors.) The integer is your window id . Old GLUT promises that these integers are ``small''; we do not reuse old id s, but do produce them sequentially. You can change the title later via glutSetWindowTitle(). SEE ALSO
glutDestroyWindow(3) glutCreateSubWindow(3) glutSetWindowTitle(3) glutCreateMenuWindow(3) Epoch
Man Page