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

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

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