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 | #pragma once |
5 | |
6 | #include "qxcbnativeinterfacehandler.h" |
7 | |
8 | QT_BEGIN_NAMESPACE |
9 | |
10 | class QXcbGlxNativeInterfaceHandler : public QXcbNativeInterfaceHandler |
11 | { |
12 | public: |
13 | enum ResourceType { |
14 | GLXConfig, |
15 | GLXContext, |
16 | }; |
17 | |
18 | QXcbGlxNativeInterfaceHandler(QXcbNativeInterface *nativeInterface); |
19 | QPlatformNativeInterface::NativeResourceForContextFunction nativeResourceFunctionForContext(const QByteArray &resource) const override; |
20 | |
21 | private: |
22 | static void *glxContextForContext(QOpenGLContext *context); |
23 | static void *glxConfigForContext(QOpenGLContext *context); |
24 | }; |
25 | |
26 | QT_END_NAMESPACE |
27 |