http://doc.qt.io/qt-5/examples-widgets-opengl.html
我会告诉你我直接用win32没用glut吗
[quote=引用 3 楼 fly_dragon_fly 的回复:] 已经用Qt, 何必用glut, 直接QGLWidget就可以
The main question is why would you want to use GLUT together with Qt when Qt already offers a far better support for OpenGL, windows, keyboard and a lot of other stuff. GLUT is an old and obsolete library and even with the newer incarnations of it like freeglut there's little point in using them together with Qt, which has a superset of their functionality already.
已经用Qt, 何必用glut, 直接QGLWidget就可以
64,682
社区成员
250,491
社区内容
加载中
试试用AI创作助手写篇文章吧