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
qopenglcontext_p.h File Reference

(12f8b583cfd083f52b95248a798184f43314955a)

#include <QtGui/private/qtguiglobal_p.h>
#include <qopengl.h>
#include "qopenglcontext.h"
#include <private/qobject_p.h>
#include <qmutex.h>
#include <QtCore/QByteArray>
#include <QtCore/QHash>
#include <QtCore/QSet>
+ Include dependency graph for qopenglcontext_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QOpenGLSharedResource
 The QOpenGLSharedResource class is used to keep track of resources that are shared between OpenGL contexts (like textures, framebuffer objects, shader programs, etc), and clean them up in a safe way when they're no longer needed. \inmodule QtGui. More...
 
class  QOpenGLSharedResourceGuard
 The QOpenGLSharedResourceGuard class is a convenience sub-class of QOpenGLSharedResource to be used to track a single OpenGL object with a GLuint identifier. The constructor takes a function pointer to a function that will be used to free the resource if and when necessary. \inmodule QtGui. More...
 
class  QOpenGLContextGroupPrivate
 
class  QOpenGLMultiGroupSharedResource
 The QOpenGLMultiGroupSharedResource keeps track of a shared resource that might be needed from multiple contexts, like a glyph cache or gradient cache. One instance of the object is created for each group when necessary. The shared resource instance should have a constructor that takes a QOpenGLContext *. To get an instance for a given context one calls T *QOpenGLMultiGroupSharedResourcevalue<T>(context), where T is a sub-class of QOpenGLSharedResource. \inmodule QtGui. More...
 
class  QOpenGLContextVersionFunctionHelper
 
class  QOpenGLContextPrivate
 

Functions

Q_GUI_EXPORT void qt_gl_set_global_share_context (QOpenGLContext *context)
 
Q_GUI_EXPORT QOpenGLContextqt_gl_global_share_context ()
 

Function Documentation

◆ qt_gl_global_share_context()

Q_GUI_EXPORT 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(), QOpenGLWidgetPrivate::initialize(), Q_TRACE_INSTRUMENT(), and QEglFSWindow::setBackingStore().

+ Here is the caller graph for this function:

◆ qt_gl_set_global_share_context()

Q_GUI_EXPORT 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().

+ Here is the caller graph for this function: