开 始CEGUI之前,先写一个Glut的框架程序。需要注意的是,这里使用的是FreeGlut而不是Glut。这是因为Glut中,调用了 glutMainLoop()之后,程序再也不返回了,而FreeGlut有一个glutMainLoopEvent函数,每循环一次就会返回。这给了我 们渲染CEGUI的机会。 | |
glut_loop.cpp
| |
Makefile:
|
开 始CEGUI之前,先写一个Glut的框架程序。需要注意的是,这里使用的是FreeGlut而不是Glut。这是因为Glut中,调用了 glutMainLoop()之后,程序再也不返回了,而FreeGlut有一个glutMainLoopEvent函数,每循环一次就会返回。这给了我 们渲染CEGUI的机会。 | |
glut_loop.cpp
| |
Makefile:
|