Freeglut implemented almost entirely.