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
qxcbeglwindow.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
7#include "qxcbwindow.h"
8
10
11QT_BEGIN_NAMESPACE
12
13class QXcbEglIntegration;
14
16{
17public:
18 QXcbEglWindow(QWindow *window, QXcbEglIntegration *glIntegration);
20
21 EGLSurface eglSurface() const { return m_surface; }
22
23 QXcbEglIntegration *glIntegration() const { return m_glIntegration; }
24
25protected:
26 void create() override;
27 void resolveFormat(const QSurfaceFormat &format) override;
28 const xcb_visualtype_t *createVisual() override;
29
30private:
31 QXcbEglIntegration *m_glIntegration;
32 EGLConfig m_config;
33 EGLSurface m_surface;
34};
35
36QT_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
QXcbEglWindow(QWindow *window, QXcbEglIntegration *glIntegration)
void resolveFormat(const QSurfaceFormat &format) override
EGLSurface eglSurface() const
const xcb_visualtype_t * createVisual() override
void create() override
QXcbEglIntegration * glIntegration() const
std::optional< VisualInfo > getVisualInfo(xcb_screen_t *screen, std::optional< xcb_visualid_t > requestedVisualId, std::optional< uint8_t > requestedDepth=std::nullopt)