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 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | class QXcbGlxNativeInterfaceHandler : public QXcbNativeInterfaceHandler |
12 | { |
13 | public: |
14 | enum ResourceType { |
15 | GLXConfig, |
16 | GLXContext, |
17 | }; |
18 | |
19 | QXcbGlxNativeInterfaceHandler(QXcbNativeInterface *nativeInterface); |
20 | QPlatformNativeInterface::NativeResourceForContextFunction nativeResourceFunctionForContext(const QByteArray &resource) const override; |
21 | |
22 | private: |
23 | static void *glxContextForContext(QOpenGLContext *context); |
24 | static void *glxConfigForContext(QOpenGLContext *context); |
25 | }; |
26 | |
27 | QT_END_NAMESPACE |
28 | |
29 | #endif //QXCBGLXNATIVEINTERFACEHANDLER_H |
30 |