Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qxcbeglintegration.h
Go to the documentation of this file.
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
8
10
11#include <QtGui/QOpenGLContext>
12#include <qpa/qplatformopenglcontext.h>
13#include <QtGui/qpa/qplatformscreen.h>
14#include <QtGui/QScreen>
15
16#include "qxcbscreen.h"
17
18#include "qxcbeglinclude.h"
19
21
23
26{
27public:
30
31 bool initialize(QXcbConnection *connection) override;
32
33 QXcbWindow *createWindow(QWindow *window) const override;
34 QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const override;
35 QOpenGLContext *createOpenGLContext(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext) const override;
36 QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface) const override;
37
38 bool supportsThreadedOpenGL() const override { return true; }
39
40 EGLDisplay eglDisplay() const { return m_egl_display; }
41
42 bool usingPlatformDisplay() const { return m_using_platform_display; }
43
44 xcb_visualid_t getCompatibleVisualId(xcb_screen_t *screen, EGLConfig config) const;
45private:
46 QXcbConnection *m_connection;
47 EGLDisplay m_egl_display;
48 bool m_using_platform_display;
49
50 QScopedPointer<QXcbEglNativeInterfaceHandler> m_native_interface_handler;
51};
52
53QT_END_NAMESPACE
QOpenGLContext * createOpenGLContext(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext) const override
bool supportsThreadedOpenGL() const override
QPlatformOffscreenSurface * createPlatformOffscreenSurface(QOffscreenSurface *surface) const override
QXcbWindow * createWindow(QWindow *window) const override
bool usingPlatformDisplay() const
bool initialize(QXcbConnection *connection) override
xcb_visualid_t getCompatibleVisualId(xcb_screen_t *screen, EGLConfig config) const
EGLDisplay eglDisplay() const
QPlatformOpenGLContext * createPlatformOpenGLContext(QOpenGLContext *context) const override
std::optional< VisualInfo > getVisualInfo(xcb_screen_t *screen, std::optional< xcb_visualid_t > requestedVisualId, std::optional< uint8_t > requestedDepth=std::nullopt)