Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QXCBEGLINTEGRATION_H
5#define QXCBEGLINTEGRATION_H
6
7#include "qxcbglintegration.h"
8
9#include "qxcbeglwindow.h"
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
25 , public QNativeInterface::Private::QEGLIntegration
26{
27public:
30
31 bool initialize(QXcbConnection *connection) override;
32
33 QXcbWindow *createWindow(QWindow *window) const override;
35 QOpenGLContext *createOpenGLContext(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext) 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
54#endif //QXCBEGLINTEGRATION_H
\inmodule QtGui
\inmodule QtGui
The QPlatformOpenGLContext class provides an abstraction for native GL contexts.
\inmodule QtGui
Definition qwindow.h:63
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
xcb_visualid_t getCompatibleVisualId(xcb_screen_t *screen, EGLConfig config) const
EGLDisplay eglDisplay() const
QPlatformOpenGLContext * createPlatformOpenGLContext(QOpenGLContext *context) const override
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
static void * context
static bool initialize()
Definition qctf.cpp:94
DBusConnection * connection
EGLConfig config
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
QScreen * screen
[1]
Definition main.cpp:29
aWidget window() -> setWindowTitle("New Window Title")
[2]