5#ifndef QOFFSCREENINTEGRATION_X11_H
6#define QOFFSCREENINTEGRATION_X11_H
12#include <qscopedpointer.h>
14#include <qpa/qplatformopenglcontext.h>
15#include <QtGui/qguiapplication.h>
19class QOffscreenX11Connection;
20class QOffscreenX11Info;
32#if !defined(QT_NO_OPENGL) && QT_CONFIG(xcb_glx_plugin)
47 bool hasCapability(QPlatformIntegration::Capability cap)
const override;
49#if !defined(QT_NO_OPENGL) && QT_CONFIG(xcb_glx_plugin)
62 void *
display()
const {
return m_display; }
69 QScopedPointer<QOffscreenX11Info> m_x11Info;
72#if QT_CONFIG(xcb_glx_plugin)
73class QOffscreenX11GLXContextData;
75class QOffscreenX11GLXContext :
public QPlatformOpenGLContext
76 ,
public QNativeInterface::QGLXContext
79 QOffscreenX11GLXContext(QOffscreenX11Info *x11, QOpenGLContext *context);
80 ~QOffscreenX11GLXContext();
82 bool makeCurrent(QPlatformSurface *surface) override;
83 void doneCurrent() override;
84 void swapBuffers(QPlatformSurface *surface) override;
85 QFunctionPointer getProcAddress(
const char *procName) override;
87 QSurfaceFormat format()
const override;
88 bool isSharing()
const override;
89 bool isValid()
const override;
91 GLXContext nativeContext()
const override {
return glxContext(); }
93 void *glxConfig()
const;
94 GLXContext glxContext()
const;
97 QScopedPointer<QOffscreenX11GLXContextData> d;
~QOffscreenX11Connection()
QOffscreenX11Connection()
QOffscreenX11Info * x11Info()
bool hasCapability(QPlatformIntegration::Capability cap) const override
QOffscreenX11PlatformNativeInterface * nativeInterface() const override
QOffscreenX11Integration(const QStringList ¶mList)
~QOffscreenX11Integration()