Answers

1. Control is passed back to the programmer by registering callback functions. These functions are called whenever events such as window resizing, user input, or even a call to display the screen occur. A function pointer for each desired event is passed to the corresponding GLUT function at initialization.

2. The parameter is a bitmap that determines a number of display mode settings. Some include whether to use RGBA or color indexing a single or double buffered window, and to possibly use an associated depth, stencil, or accumulation buffer.

3. GlViewport defines the rectangular area of the window that displays the image.

last edited 2007-01-19 05:24:17 by rescomp-06-61569