开发者

Does glutMainLoop() make the application's main run like a loop?

开发者 https://www.devze.com 2023-01-23 09:01 出处:网络
I know it sounds like a redundant and obvious/stupid question, but the documentation doesn\'t explicitly state it.

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

精彩评论

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