说一下 AA_UseDesktopOpenGL 和 AA_UseSoftwareOpenGL的区别吧。



  • Qt::AA_UseDesktopOpenGL
    Forces the usage of desktop OpenGL (for example, opengl32.dll or libGL.so) on platforms that use dynamic loading of the OpenGL implementation. This value has been added in Qt 5.3. This attribute must be set before Q(Gui)Application is constructed.

    Qt::AA_UseOpenGLES
    Forces the usage of OpenGL ES 2.0 or higher on platforms that use dynamic loading of the OpenGL implementation. This value has been added in Qt 5.3. This attribute must be set before Q(Gui)Application is constructed.

    Qt::AA_UseSoftwareOpenGL
    Forces the usage of a software based OpenGL implementation on platforms that use dynamic loading of the OpenGL implementation. This will typically be a patched build of Mesa llvmpipe, providing OpenGL 2.1. The value may have no effect if no such OpenGL implementation is available. The default name of this library is opengl32sw.dll and can be overridden by setting the environment variable QT_OPENGL_DLL. See the platform-specific pages, for instance Qt for Windows, for more information. This value has been added in Qt 5.4. This attribute must be set before Q(Gui)Application is constructed.



  • 这里不太明白的是,software和desktop的区别。
    另外,只了解到,es是用在移动端的,项目是在Windows下的,故不考虑。



  • @flowerlove software使用的是Qt自带的一个库openglsw32.dll。当然64位的版本我就不清楚了。desktop的使用Windows自己编译的opengl32.dll或者是显卡所带的opengl32.dll。:cowboy:


登录后回复
 

与 萌梦社区 的连接断开,我们正在尝试重连,请耐心等待