Fixed a bug where the window when only drawn when the mouse cursor moved.  Wrote a new event loop.
Added the "polygons" example from "Beginning OpenGL" chapter 3.