![]() |
Qt 6.x
The Qt SDK
|
#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>
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 QOpenGLContext * | 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(), Q_TRACE_INSTRUMENT(), and QEglFSWindow::setBackingStore().
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().