1UNTITLED LOCAL UNTITLED
2
4 glutMainLoop — The standard GLUT event loop entry point.
5
7 OpenGLUT - mainloop
8
10 #include <openglut.h>
11
12 void
13 glutMainLoop(void);
14
16 This is the main driving force for an event-driven OpenGLUT program. It
17 alternates between calling glutMainLoopEvent() to process pending events
18 and then either sleeping or calling your idle function (see glutIdle‐
19 Func()).
20
21 This function can return, but GLUT's version of this function never
22 returned. And you must do special things to OpenGLUT to cause OpenGLUT's
23 version to return.
24
25 The cross-reference section for this function's documentation should ide‐
26 ally contain every callback, but the list would be tediously long and
27 prone to omissions.
28
30 For OpenGLUT developers' internal documentation: Runs until the Exec‐
31 State changes to GLUT_EXEC_STATE_STOP.
32
34 Talking to other message systems (e.g., network layers) can be a bit
35 bothersome under the GLUT event model.
36
38 glutMainLoopEvent(3) glutLeaveMainLoop(3) glutIdleFunc(3)
39
40
41
42
43 Epoch