opengl

liu54ee 2015-08-08 11:59:36
opengl(不是Qt自带的)的glut怎么和Qt结合起来呢?
glut有glutCreateWindow,我怎么把他放到Qt的UI里面显示出来呢?
...全文
114 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
liu54ee 2015-08-11
  • 打赏
  • 举报
回复
引用 5 楼 bear234 的回复:
http://doc.qt.io/qt-5/examples-widgets-opengl.html
这个看了HelloGL2大致看的懂,log.h的实现不明白
liu54ee 2015-08-11
  • 打赏
  • 举报
回复
引用 6 楼 hhhhhhhhhhkkkkkkkkkk 的回复:
我会告诉你我直接用win32没用glut吗
你屌
fly_dragon_fly 2015-08-10
  • 打赏
  • 举报
回复
已经用Qt, 何必用glut, 直接QGLWidget就可以
fly_dragon_fly 2015-08-10
  • 打赏
  • 举报
回复
引用 4 楼 liujiangfeng54 的回复:
[quote=引用 3 楼 fly_dragon_fly 的回复:] 已经用Qt, 何必用glut, 直接QGLWidget就可以
Qt,opengl接触没多久,不是很了解。 因为老师给的代码里面都是glut,glui,然后要求我和另一个Qt的代码结合起来,因为这些都不是很了解,所以一直想着看Qt能不能直接操作glut什么的,然后在Qt Forum上面也问了
引用
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.
现在就是打算用QGLwidget重写glut的部分,不知道是否还有其他建议?[/quote]glut只是建个框架, 主要还是要学习一下opengl
  • 打赏
  • 举报
回复
我会告诉你我直接用win32没用glut吗
bear234 2015-08-10
  • 打赏
  • 举报
回复
http://doc.qt.io/qt-5/examples-widgets-opengl.html
liu54ee 2015-08-10
  • 打赏
  • 举报
回复
引用 3 楼 fly_dragon_fly 的回复:
已经用Qt, 何必用glut, 直接QGLWidget就可以
Qt,opengl接触没多久,不是很了解。 因为老师给的代码里面都是glut,glui,然后要求我和另一个Qt的代码结合起来,因为这些都不是很了解,所以一直想着看Qt能不能直接操作glut什么的,然后在Qt Forum上面也问了
引用
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.
现在就是打算用QGLwidget重写glut的部分,不知道是否还有其他建议?
liu54ee 2015-08-09
  • 打赏
  • 举报
回复
求资料啊。。。
liu54ee 2015-08-09
  • 打赏
  • 举报
回复
请问Qt能够管理和操作glut(glutCreateWindow)生成的窗口? 如果可以的话那该怎么做呢? 或者是要用Qt自身的QGLWidget(opengl 窗口部件类)来替换glut?

64,682

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧