Introduction to GLUT and OpenGL

Event-Driven Systems

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.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32