Revision 3 as of 2007-01-14 21:25:27

    AndyGrant/Assignment1

1. In a GLUT program, how is control passed back to the programmer? How is this set up during initialization?

2. What does the parameter to glutInitDisplayMode() in main() specify?

  • The glutInitDisplayMode() in main() specifies the display mode for the window. In this case it is specifying to us RGBA (GLUT_RGBA) instead of color-indexing and to use a double buffer (GLUT_DOUBLE) instead of a single one. The double buffer allows for smooth animation (ability to swap front and back buffers).

3. What do the calls to glOrtho() and glViewport() in the reshape() function accomplish? If the window is to be resized, why might we want to change this?

Recent