Converted from freeGLUT to GLFW.