如何使用OpenGL和QT? [英] How to work with OpenGL and QT?
问题描述
我正在做一个小项目,我需要使用OpenGL + QT
我俩都是新手.因此,我需要一个很好的教程来说明如何彼此(而不是单独地)彼此合作
在QT Creator上使用OpenGL或使用QT Visual Studio插件会更好吗?
您将大量使用QGLWidget
!在这里,您去了:
http://doc.qt.io/qt-5 /examples-widgets-opengl.html
在所有这些方法中,也许这是最好的方法:您好,GL示例.如果您更喜欢使用Qt Quick而不是Qt小部件,请查看以下帖子:
如果您要使用比OpenGL更高级的3D API,例如Qt 5.7 Qt 3D 变成稳定.. >
对于IDE,我建议使用Qt Creator.它可以在Windows上直接使用,语法高亮和自动完成功能与Visual Studio相当.
I'm Working on a small project and i need to work with OpenGL + QT
I'm Newbie in both of them. So i need a good tutorial that illustrates how to work with them each other not individually
is it better to work OpenGL on QT Creator or use QT Visual Studio Plug-in?
You'll be using QGLWidget
a lot! Here you go:
http://doc.qt.io/qt-5/examples-widgets-opengl.html
Of all those, maybe this is the best one to start: Hello GL Example. If you prefer using Qt Quick instead of Qt Widgets, check these posts:
- Integrating custom OpenGL rendering with Qt Quick via QQuickFramebufferObject
- Scene Graph - OpenGL Under QML
If you want a higher-level 3D API than OpenGL, as o Qt 5.7 Qt 3D became stable.
As for the IDE I suggest using Qt Creator. It works out of the box on Windows and the syntax highlighting and autocomplete are comparable to Visual Studio.
这篇关于如何使用OpenGL和QT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!