Assignment One Answers

1. Control is passed back through the use of callback functions. These are registered using glutDisplayFunc(), glutReshapeFunc(), glutKeyboardFunc(), glutMouseFunc(), etc. The functions registered are called whenever the corresponding event occurs (a window reshape, keyboard event, mouse event, etc.), and then the programmer is able to take control back from the library code.

2. This parameter specifies the display mode of the program. Available settings are RGBA or color-index and single- or double-buffered, as well as others. These options are specified by combining the constants GLUT_RGBA or GLUT_INDEX and GLUT_SINGLE or GLUT_DOUBLE using a bitwise OR.

3.

last edited 2007-01-17 11:52:13 by etlovett