What's the point of glutidlefunc() in freeglut
问题 I get how glutdisplayfunc() makes the display loop and Iv read in some places that you should put the game mechanics in glutidle instead of the display; why can't you just put them in a while (gameisrunning) loop? 回答1: In event-driven programming, like you have in interactive OpenGL applications, the main application loop generally does three things: check the current event queues, and process any events (e.g., mouse movement, key presses, etc.) that have occurred since the last check update