01/22/2001
15-462 Computer Graphics I
10
Types of Callbacks
•Display ( ): when window must be drawn
•Idle ( ): when no other events to be handled
•Keyboard (unsigned char key, int x, int y): key
•Menu (...): after selection from menu
•Mouse (int button, int state, int x, int y): mouse [note error on p.49 of primer]
•Motion (...): mouse movement (see primer)
•Reshape (int w, int h): window resize
•Any callback can be NULL