Solved Testing a platform's OpenGL capabilities
-
Hi,
in the Scene Graph-Rendering FBOs in a thread example the platform's support for threaded OpenGL is tested like this:
QGuiApplicationPrivate::platform_integration->hasCapability(QPlatformIntegration::ThreadedOpenGL))
As one can see, this involves including private qt features. As the example is around for some years (months?) now, I thought that in the meantime stuff might have been added that offers the same functionality without the need for private qt features to be included.
Any ideas?
-
Hi,
What OpenGL capabilities do you have in mind ?
-
First I need to know if desktop OpenGL is available or only OpenGLES. If the system has support for desktop OpenGL then the next thing I need to know is, if threaded OpenGL (like in my post above) is available.
-
Would "QOpenGLContext::OpenGLModuleType":http://doc.qt.io/qt-5/qopenglcontext.html#OpenGLModuleType-enum fit for the first part ?
-
@SGaist Great! Thank you! Didn't know this exists. :-)