1UNTITLED LOCAL UNTITLED
2
4 glutMainLoopEvent — Dispatches all pending events.
5
7 OpenGLUT - mainloop
8
10 #include <openglut.h>
11
12 void
13 glutMainLoopEvent(void);
14
16 The general outline of this function is to first drain the queue of win‐
17 dowsystem events, in most cases dispatching each as it is found. After
18 the queue is empty, we check for timer-based events, coalesced window
19 events (e.g., redisplays), and windows that need to be closed.
20
21 The cross-reference section for this function's documentation should ide‐
22 ally contain every callback, but the list would be tediously long and
23 prone to omissions.
24
26 Does not necessarily dispatch events that are received after this
27 function starts processing.
28
29 At first glance, this function may not seem to afford any new capability
30 that you couldn't get with an idle callback or glutLeaveMainLoop(). How‐
31 ever there are other GLUT-like libraries that may have their own window
32 event processing loops. Having glutMainLoopEvent() allows you to ask
33 OpenGLUT to do its work in a batch, then return to whatever processing
34 the other library (or libraries) require.
35
37 glutIdleFunc(3) glutLeaveMainLoop(3) glutMainLoop(3)
38
39
40
41
42 Epoch