开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜