QGLXNativeContext Struct
A class encapsulating a GLXContext and related native handles. More...
| Header: | #include <QGLXNativeContext> |
| Since: | Qt 5.4 |
This struct was introduced in Qt 5.4.
Detailed Description
Note: Only context() is guaranteed to be valid. The other handles may be all 0. They are useful however when QOpenGLContext::setNativeHandle() is used to adopt a legacy context created by glXCreateContext. To adopt such a context, either the Window or VisualID that had been used to create the context needs to be known, otherwise the adoption will fail. For modern contexts created with an FBConfig, these are not necessary, the GLXContext itself is sufficient. The Display is optional.
Note: There is no binary compatibility guarantee for this class, meaning that an application using it is only guaranteed to work with the Qt version it was developed against.
See also QOpenGLContext::setNativeHandle() and QOpenGLContext::nativeHandle().