| 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 |
// Qt-Security score:significant reason:default |
| 4 |
|
| 5 |
#pragma once |
| 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 |