![]() |
Qt 6.x
The Qt SDK
|
#include <qopenglcontext_p.h>
Public Types | |
using | QOpenGLVertexArrayObjectHelperDestroyCallback_t = void(*)(QOpenGLVertexArrayObjectHelper *) |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Static Public Member Functions | |
static QOpenGLContext * | setCurrentContext (QOpenGLContext *context) |
static QOpenGLContextPrivate * | get (QOpenGLContext *context) |
static bool | toggleMakeCurrentTracker (QOpenGLContext *context, bool value) |
static void | cleanMakeCurrentTracker (QOpenGLContext *context) |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Static Public Attributes | |
static QHash< QOpenGLContext *, bool > | makeCurrentTracker |
static QMutex | makeCurrentTrackerMutex |
Definition at line 168 of file qopenglcontext_p.h.
using QOpenGLContextPrivate::QOpenGLVertexArrayObjectHelperDestroyCallback_t = void (*)(QOpenGLVertexArrayObjectHelper *) |
Definition at line 211 of file qopenglcontext_p.h.
|
inline |
Definition at line 172 of file qopenglcontext_p.h.
References QSurfaceFormat::defaultFormat().
|
override |
Definition at line 364 of file qopenglcontext.cpp.
Definition at line 305 of file qopenglcontext.cpp.
References screen.
void QOpenGLContextPrivate::adopt | ( | QPlatformOpenGLContext * | context | ) |
Definition at line 368 of file qopenglcontext.cpp.
References context, QPlatformOpenGLContext::initialize(), QPlatformOpenGLContext::isSharing(), platformGLContext, shareContext, QOpenGLContext::shareGroup(), and shareGroup.
|
inlinestatic |
Definition at line 248 of file qopenglcontext_p.h.
References context.
Referenced by QOpenGLContext::~QOpenGLContext().
|
inlinestatic |
Definition at line 235 of file qopenglcontext_p.h.
References context.
Referenced by QOpenGLFramebufferObject::~QOpenGLFramebufferObject(), QOpenGLFramebufferObject::bind(), QOpenGLFramebufferObject::bindDefault(), QOpenGLShader::compileSourceCode(), QEGLPlatformContext::createFrom(), QXcbGlxIntegration::createOpenGLContext(), QWindowsIntegration::createOpenGLContext(), QCocoaIntegration::createOpenGLContext(), QOpenGLWidgetPaintDevicePrivate::endPaint(), QOpenGLWidgetPaintDevice::ensureActiveTarget(), QOpenGLContextVersionData::forContext(), Q_TRACE_INSTRUMENT(), QOpenGLFramebufferObject::release(), QOpenGLWidgetPrivate::render(), QOpenGLFramebufferObject::setAttachment(), and QOpenGLVertexArrayObjectHelper::vertexArrayObjectHelperForContext().
int QOpenGLContextPrivate::maxTextureSize | ( | ) |
Definition at line 165 of file qopenglcontext.cpp.
References funcs, GL_RGBA, GL_TEXTURE_WIDTH, GL_UNSIGNED_BYTE, GLenum(), QOpenGLExtraFunctions::glGetTexLevelParameteriv(), GLint(), max_texture_size, next, and proxy.
|
static |
Set the current context. Returns the previously current context.
Definition at line 149 of file qopenglcontext.cpp.
References QGuiGLThreadContext::context, context, QThread::currentThread(), and qWarning.
Referenced by QOpenGLContext::doneCurrent(), QtWaylandClient::QWaylandGLContext::makeCurrent(), and QOpenGLContext::makeCurrent().
|
inlinestatic |
Definition at line 241 of file qopenglcontext_p.h.
References context.
Referenced by QOpenGLContext::makeCurrent(), and QOpenGLContext::swapBuffers().
QPaintEngineEx* QOpenGLContextPrivate::active_engine |
Definition at line 220 of file qopenglcontext_p.h.
Referenced by QOpenGLEngineShaderManager::useBlitProgram(), QOpenGLEngineShaderManager::useCorrectShaderProg(), and QOpenGLEngineShaderManager::useSimpleProgram().
GLuint QOpenGLContextPrivate::defaultFboRedirect |
Definition at line 229 of file qopenglcontext_p.h.
Referenced by QOpenGLWidgetPaintDevicePrivate::endPaint(), QOpenGLWidgetPaintDevice::ensureActiveTarget(), and QOpenGLWidgetPrivate::render().
|
mutable |
Definition at line 206 of file qopenglcontext_p.h.
QOpenGLFunctions* QOpenGLContextPrivate::functions |
Definition at line 205 of file qopenglcontext_p.h.
|
static |
Definition at line 253 of file qopenglcontext_p.h.
|
static |
Definition at line 254 of file qopenglcontext_p.h.
GLint QOpenGLContextPrivate::max_texture_size |
Definition at line 214 of file qopenglcontext_p.h.
Referenced by maxTextureSize().
QPlatformOpenGLContext* QOpenGLContextPrivate::platformGLContext |
Definition at line 200 of file qopenglcontext_p.h.
Referenced by adopt().
QOpenGLFramebufferObject* QOpenGLContextPrivate::qgl_current_fbo |
Definition at line 227 of file qopenglcontext_p.h.
Referenced by QOpenGLFramebufferObject::~QOpenGLFramebufferObject(), QOpenGLFramebufferObject::bind(), QOpenGLFramebufferObject::bindDefault(), and QOpenGLFramebufferObject::release().
bool QOpenGLContextPrivate::qgl_current_fbo_invalid |
Definition at line 222 of file qopenglcontext_p.h.
Referenced by QOpenGLFramebufferObject::~QOpenGLFramebufferObject(), QOpenGLFramebufferObject::bind(), QOpenGLFramebufferObject::bindDefault(), Q_TRACE_INSTRUMENT(), QOpenGLFramebufferObject::release(), and QOpenGLFramebufferObject::setAttachment().
QSurfaceFormat QOpenGLContextPrivate::requestedFormat |
Definition at line 199 of file qopenglcontext_p.h.
QScreen* QOpenGLContextPrivate::screen |
Definition at line 203 of file qopenglcontext_p.h.
Referenced by _q_screenDestroyed().
QOpenGLContext* QOpenGLContextPrivate::shareContext |
Definition at line 201 of file qopenglcontext_p.h.
Referenced by adopt().
QOpenGLContextGroup* QOpenGLContextPrivate::shareGroup |
Definition at line 202 of file qopenglcontext_p.h.
Referenced by adopt().
QSurface* QOpenGLContextPrivate::surface |
Definition at line 204 of file qopenglcontext_p.h.
QOpenGLTextureHelper* QOpenGLContextPrivate::textureFunctions |
Definition at line 207 of file qopenglcontext_p.h.
std::function<void()> QOpenGLContextPrivate::textureFunctionsDestroyCallback |
Definition at line 208 of file qopenglcontext_p.h.
QOpenGLVertexArrayObjectHelper* QOpenGLContextPrivate::vaoHelper |
Definition at line 210 of file qopenglcontext_p.h.
QOpenGLVertexArrayObjectHelperDestroyCallback_t QOpenGLContextPrivate::vaoHelperDestroyCallback |
Definition at line 212 of file qopenglcontext_p.h.
QOpenGLContextVersionFunctionHelper* QOpenGLContextPrivate::versionFunctions |
Definition at line 209 of file qopenglcontext_p.h.
Referenced by QOpenGLContextVersionData::forContext().
bool QOpenGLContextPrivate::workaround_brokenFBOReadBack |
Definition at line 216 of file qopenglcontext_p.h.
bool QOpenGLContextPrivate::workaround_brokenTexSubImage |
Definition at line 217 of file qopenglcontext_p.h.
bool QOpenGLContextPrivate::workaround_missingPrecisionQualifiers |
Definition at line 218 of file qopenglcontext_p.h.
Referenced by QOpenGLShader::compileSourceCode().