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
QOpenGLMultiGroupSharedResource Class Reference

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

#include <qopenglcontext_p.h>

Collaboration diagram for QOpenGLMultiGroupSharedResource:

Public Member Functions

 QOpenGLMultiGroupSharedResource ()
 ~QOpenGLMultiGroupSharedResource ()
void insert (QOpenGLContext *context, QOpenGLSharedResource *value)
void cleanup (QOpenGLContextGroup *group, QOpenGLSharedResource *value)
QOpenGLSharedResourcevalue (QOpenGLContext *context)
QList< QOpenGLSharedResource * > resources () const
template<typename T>
T * value (QOpenGLContext *context)

Detailed Description

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.

Since
5.0

You should not call free() on QOpenGLSharedResources owned by a QOpenGLMultiGroupSharedResource instance.

Definition at line 124 of file qopenglcontext_p.h.

Constructor & Destructor Documentation

◆ QOpenGLMultiGroupSharedResource()

QOpenGLMultiGroupSharedResource::QOpenGLMultiGroupSharedResource ( )

Definition at line 1226 of file qopenglcontext.cpp.

◆ ~QOpenGLMultiGroupSharedResource()

QOpenGLMultiGroupSharedResource::~QOpenGLMultiGroupSharedResource ( )

Definition at line 1234 of file qopenglcontext.cpp.

Member Function Documentation

◆ cleanup()

void QOpenGLMultiGroupSharedResource::cleanup ( QOpenGLContextGroup * group,
QOpenGLSharedResource * value )

Definition at line 1287 of file qopenglcontext.cpp.

◆ insert()

void QOpenGLMultiGroupSharedResource::insert ( QOpenGLContext * context,
QOpenGLSharedResource * value )

Definition at line 1258 of file qopenglcontext.cpp.

◆ resources()

QList< QOpenGLSharedResource * > QOpenGLMultiGroupSharedResource::resources ( ) const

Definition at line 1276 of file qopenglcontext.cpp.

◆ value() [1/2]

QOpenGLSharedResource * QOpenGLMultiGroupSharedResource::value ( QOpenGLContext * context)

Definition at line 1270 of file qopenglcontext.cpp.

◆ value() [2/2]

template<typename T>
T * QOpenGLMultiGroupSharedResource::value ( QOpenGLContext * context)
inline

Definition at line 138 of file qopenglcontext_p.h.


The documentation for this class was generated from the following files: