Qt C ++库Windows和OpenGL [英] Qt C++ Library for Windows and OpenGL

查看:184
本文介绍了Qt C ++库Windows和OpenGL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Windows上试验Qt库。在他们的下载页面,我注意到使用VS2012构建的二进制文件有两种形式,有和没有OpenGL。两者之间的区别究竟是什么?在OpenGL版本中,他们有一些特殊的API使用OpenGL实现或者所有的Qt渲染依赖于OpenGL?还有,有一个版本的Qt使用DirectX?

I am trying to experiment with the Qt library on Windows. On their downloads page, I notice that the binaries built using VS2012 are available in two forms, with and without OpenGL. What exactly is the difference between the two? In the OpenGL version, do they have some special API implemented using OpenGL or does all of Qt rendering depend on OpenGL? Also, is there a version of Qt that uses DirectX?

推荐答案

@Raman:opengl变体使用桌面opengl版本像Qt4。

@Raman: The opengl variant is using the desktop opengl version just like with Qt4.

非opengl变体是使用角度,你需要安装在DirectX SDK旁边才能工作。 Angle是directx和opengles API之间的适配器。只有后者是直接由Qt支持,但不幸的是directx驱动程序往往在Windows上比opengl(es)更好的工作。没有计划支持Qt中的directx后端,所以我们离开了Google的角度工作在这方面。

The non-opengl variant is using angle, and you need to have that installed alongside the DirectX SDK to get it working. Angle is an adapter between the directx and the opengles API. Only the latter is support directly by Qt, but unfortunately directx drivers tend to work better on Windows than the opengl(es) ones. There are no plans to support a directx backend inside Qt, so we leave with Google's Angle work in that regard.

至于提供一些额外的位,有一个讨论它最近在邮件列表上,这个决定不应该是构建时间,而是更像运行时间。然而,没有人站起来尚未完成这项工作。希望,这将很快改变。它正在造成最终用户的困惑,因此不要孤单。 ; - )

As for providing some extra bit, there was a discussion about it recently on the mailing list, that this decision should not be build time, but more like run time. However, no one has stood up just yet to make that work. Hopefully, that will change soon. It is causing confusion for the end users just like, so do not feel alone. ;-)

希望此解释有帮助。

这篇关于Qt C ++库Windows和OpenGL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆