Introduction to GLUT and OpenGL |
GLUT is an event-driven system meaning that it is designed to respond to events. These events can be triggered by the user (press a keyboard key, move a mouse, etc.) or by the system itself.
Event-driven systems require that a handler be registered for each event the program wants to respond to. A handler is a function that is called by the system whenever the event it is designed to respond to occurs.