Chapter Questions
What command could we use to set the color of an OpenGL display window to dark gray? What command would we use to set the color of the display window to white?
List the statements needed to set up an OpenGL display window whose lower-left corner is at pixel position $(75,200)$ and has a window width of 200 pixels and a height of 150 pixels.
List the OpenGL statements needed to draw a line segment from the upper-right corner of a display window of width 150 and height 250 to the lowerleft corner of the window.
Suppose we have written a function called rect angle whose purpose is to draw a rectangle in the middle of a given display window. What OpenGL statement would be needed to make sure the rectangle is drawn correctly each time the display window needs to be repainted?
Explain what is meant by the term "OpenGL display callback function".
Explain the difference between modeling coordinates and world coordinates.
Explain what normalized coordinates are and why they are useful for graphics software packages.