8#include <QtGui/QOpenGLContext>
13 static const QByteArray names[] = {
14 QByteArrayLiteral(
"glxconfig"),
15 QByteArrayLiteral(
"glxcontext"),
17 for (size_t i = 0; i <
sizeof(names) /
sizeof(names[0]); i++) {
22 return sizeof(names) /
sizeof(names[0]);
32 switch (resourceType(resource)) {
34 return glxConfigForContext;
36 return glxContextForContext;
46 QGLXContext *glxPlatformContext =
static_cast<QGLXContext *>(context->handle());
47 return glxPlatformContext->glxContext();
53 QGLXContext *glxPlatformContext =
static_cast<QGLXContext *>(context->handle());
54 return glxPlatformContext->glxConfig();
QPlatformNativeInterface::NativeResourceForContextFunction nativeResourceFunctionForContext(const QByteArray &resource) const override
QXcbGlxNativeInterfaceHandler(QXcbNativeInterface *nativeInterface)
static QT_BEGIN_NAMESPACE int resourceType(const QByteArray &key)