GLUT Interaction

Event-driven

Use callback functions to add code


      def myInputFunction(key, x, y):
             ...

      glutKeyboardFunc(myInputFunction)

tells GLUT to call myInputFunction when there's a keyboard event



next