Revision 2 as of 2007-01-18 19:29:07

    BendeJesus

Assignment 1

  • Question 1: In a GLUT program, how is control passed back to the programmer? How is this set up during initialization? Control is passed back to the programmer in the form of the keyboard and mouse. This is accomplished with the glutKeyboard and glutReshape functions. Question 2: What does the parameter to glutInitDisplayMode() specify? The parameter to glutInitDisplayMode() specifies the display mode, whether the display is colored, single, or double-buffered Question 3: What do the calls to glOrtho() and glViewport() accomplish?
    • glOrtho() creates the coordinate system for OpenGL drawings glViewport() designates the window size in which the coordinate system resides
Recent