1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QXCBGLXNATIVEINTERFACEHANDLER_H
5#define QXCBGLXNATIVEINTERFACEHANDLER_H
6
7#include "qxcbnativeinterfacehandler.h"
8
9QT_BEGIN_NAMESPACE
10
11class QXcbGlxNativeInterfaceHandler : public QXcbNativeInterfaceHandler
12{
13public:
14 enum ResourceType {
15 GLXConfig,
16 GLXContext,
17 };
18
19 QXcbGlxNativeInterfaceHandler(QXcbNativeInterface *nativeInterface);
20 QPlatformNativeInterface::NativeResourceForContextFunction nativeResourceFunctionForContext(const QByteArray &resource) const override;
21
22private:
23 static void *glxContextForContext(QOpenGLContext *context);
24 static void *glxConfigForContext(QOpenGLContext *context);
25};
26
27QT_END_NAMESPACE
28
29#endif //QXCBGLXNATIVEINTERFACEHANDLER_H
30

source code of qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxnativeinterfacehandler.h