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
qopenglcontext.cpp File Reference

(cd1686e55f706048286cbc962bbe02032c2396cd)

#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"
+ Include dependency graph for 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)
 
QOpenGLContextqt_gl_global_share_context ()
 
QDebug operator<< (QDebug debug, const QOpenGLContext *ctx)
 
QDebug operator<< (QDebug debug, const QOpenGLContextGroup *cg)
 

Variables

static QOpenGLContextglobal_share_context = nullptr
 

Function Documentation

◆ operator<<() [1/2]

QDebug operator<< ( QDebug debug,
const QOpenGLContext * ctx )

Definition at line 1295 of file qopenglcontext.cpp.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug debug,
const QOpenGLContextGroup * cg )

Definition at line 1319 of file qopenglcontext.cpp.

◆ Q_GLOBAL_STATIC()

Q_GLOBAL_STATIC ( QThreadStorage< QGuiGLThreadContext * > ,
qwindow_context_storage  )

◆ qt_gl_global_share_context()

QOpenGLContext * qt_gl_global_share_context ( )

Definition at line 65 of file qopenglcontext.cpp.

References global_share_context.

◆ qt_gl_set_global_share_context()

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 global_share_context.

Variable Documentation

◆ global_share_context

static QOpenGLContext * global_share_context = nullptr
static