I'm trying to make a game with freeglut, but im still learning it and I don't fully understand what the looping does or whether I have to call it myself, I've already read this article http://gamedev.stackexchange.com/questions/8623/a-good-way-to-build-a-game-loop-in-opengl and didn't understand the answers I get that glutmainloop() will call whatever I set in glutdisplayfunc() but I don't know how often or where I should put the game loop code So my question is Where do I put the game loop code and how do I call it?