说一下 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。🤠


 

最近的回复

  • 纹理滤波

    在纹理映射的过程中,如果图元的大小不等于纹理的大小,OpenGL便会对纹理进行缩放以适应图元的尺寸。我们可以通过设置纹理滤镜来决定OpenGL对某个纹理采用的放大、缩小的算法

    滤镜 描述 GL_NEAREST 取最邻近像素 GL_LINEAR 线性内部插值 GL_NEAREST_MIPMAP_NEAREST 最近多贴图等级的最邻近像素 GL_NEAREST_MIPMAP_LINEAR 在最近多贴图等级的内部线性插值 GL_LINEAR_MIPMAP_NEAREST 在最近多贴图等级的外部线性插值 GL_LINEAR_MIPMAP_LINEAR 在最近多贴图等级的外部和内部线性插值

    阅读更多
  • @大黄老鼠 你的视频是挺诡异的

    阅读更多
  • @青山白云 和纹理映射的那个骰子一样,跑出来的骰子感觉不对

    阅读更多

关注我们

微博
QQ群











召唤蕾姆