Does glutMainLoop() make the application's main run like a loop?
I know it sounds like a redundant and obvious/stupid question, but the documentation doesn't explicitly state it.
If I initialize a variable inside main would it get to be reinitialized each ti开发者_开发问答me a glut event occurs (like the window gets resized, the mouse moved, a key gets pressed, etc.)?
The link you provided says what it does.
This routine should be called at most once in a GLUT program. Once called, this routine will never return.
If you call this in main() any statements following the call will not be executed.
精彩评论