![]() |
Qt 6.x
The Qt SDK
|
#include <qpa/qplatformopenglcontext.h>
#include <qpa/qplatformintegration.h>
#include "qopenglcontext.h"
#include "qopenglcontext_p.h"
#include "qwindow.h"
#include <QtCore/QThreadStorage>
#include <QtCore/QThread>
#include <QtCore/private/qlocking_p.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/private/qopengl_p.h>
#include <QtGui/private/qwindow_p.h>
#include <QtGui/QScreen>
#include <qpa/qplatformnativeinterface.h>
#include <private/qopenglextensions_p.h>
#include <QDebug>
#include "moc_qopenglcontext.cpp"
Go to the source code of this file.
Classes | |
class | QGuiGLThreadContext |
Functions | |
Q_GLOBAL_STATIC (QThreadStorage< QGuiGLThreadContext * >, qwindow_context_storage) | |
void | qt_gl_set_global_share_context (QOpenGLContext *context) |
QOpenGLContext * | qt_gl_global_share_context () |
QDebug | operator<< (QDebug debug, const QOpenGLContext *ctx) |
QDebug | operator<< (QDebug debug, const QOpenGLContextGroup *cg) |
Variables | |
static QOpenGLContext * | global_share_context = nullptr |
QDebug operator<< | ( | QDebug | debug, |
const QOpenGLContext * | ctx | ||
) |
Definition at line 1271 of file qopenglcontext.cpp.
References debug.
QDebug operator<< | ( | QDebug | debug, |
const QOpenGLContextGroup * | cg | ||
) |
Definition at line 1295 of file qopenglcontext.cpp.
References debug, and QOpenGLContextGroup::shares().
Q_GLOBAL_STATIC | ( | QThreadStorage< QGuiGLThreadContext * > | , |
qwindow_context_storage | |||
) |
QOpenGLContext * qt_gl_global_share_context | ( | ) |
Definition at line 65 of file qopenglcontext.cpp.
References global_share_context.
Referenced by QOpenGLWindowPrivate::QOpenGLWindowPrivate(), QGuiApplicationPrivate::~QGuiApplicationPrivate(), QBackingStoreRhiSupport::create(), QRhiGles2::create(), QEglFSWindow::destroy(), QOpenGLContext::globalShareContext(), Q_TRACE_INSTRUMENT(), and QEglFSWindow::setBackingStore().
void qt_gl_set_global_share_context | ( | QOpenGLContext * | context | ) |
This function is used by Qt::AA_ShareOpenGLContexts and the Qt WebEngine to set up context sharing across multiple windows. Do not use it for any other purpose.
Please maintain the binary compatibility of these functions.
Definition at line 57 of file qopenglcontext.cpp.
References context, and global_share_context.
Referenced by QGuiApplicationPrivate::~QGuiApplicationPrivate(), QEglFSWindow::destroy(), Q_TRACE_INSTRUMENT(), and QEglFSWindow::setBackingStore().
|
static |
Definition at line 41 of file qopenglcontext.cpp.
Referenced by qt_gl_global_share_context(), and qt_gl_set_global_share_context().