opengl glutmainloop()

前端 未结 4 781
鱼传尺愫
鱼传尺愫 2020-12-31 02:24

i just started off using OpenGL and it seems it is not easy to understand the working of the glutMainLoop() what really happens there? Does it stay there doing

4条回答
  •  梦毁少年i
    2020-12-31 03:14

    It is exactly as StrixVaria has stated.

    glutMainLoop enters the GLUT event processing loop. This routine should be called at most once in a GLUT program. Once called, this routine will never return. It will call as necessary any callbacks that have been registered.

    Taken from here

提交回复
热议问题