![]() |
Qt 6.x
The Qt SDK
|
#include <qopenglgradientcache_p.h>
Inheritance diagram for QOpenGL2GradientCache:
Collaboration diagram for QOpenGL2GradientCache:Public Member Functions | |
| QOpenGL2GradientCache (QOpenGLContext *) | |
| ~QOpenGL2GradientCache () | |
| GLuint | getBuffer (const QGradient &gradient, qreal opacity) |
| int | paletteSize () const |
| void | invalidateResource () override |
| void | freeResource (QOpenGLContext *ctx) override |
Public Member Functions inherited from QOpenGLSharedResource | |
| QOpenGLSharedResource (QOpenGLContextGroup *group) | |
| virtual | ~QOpenGLSharedResource ()=0 |
| QOpenGLContextGroup * | group () const |
| void | free () |
Static Public Member Functions | |
| static QOpenGL2GradientCache * | cacheForContext (QOpenGLContext *context) |
Additional Inherited Members | |
| virtual void | invalidateResource ()=0 |
| virtual void | freeResource (QOpenGLContext *context)=0 |
Definition at line 27 of file qopenglgradientcache_p.h.
| QOpenGL2GradientCache::QOpenGL2GradientCache | ( | QOpenGLContext * | ctx | ) |
Definition at line 34 of file qopenglgradientcache.cpp.
| QOpenGL2GradientCache::~QOpenGL2GradientCache | ( | ) |
Definition at line 39 of file qopenglgradientcache.cpp.
References QMultiHash< Key, T >::clear().
Here is the call graph for this function:
|
static |
Definition at line 44 of file qopenglgradientcache.cpp.
References cacheForContext(), and context.
Referenced by QOpenGL2PaintEngineExPrivate::bindTexture(), and cacheForContext().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements QOpenGLSharedResource.
Definition at line 55 of file qopenglgradientcache.cpp.
Definition at line 72 of file qopenglgradientcache.cpp.
References QMultiHash< quint64, CacheInfo >::const_iterator, QMultiHash< Key, T >::constEnd(), QMultiHash< Key, T >::constFind(), i, QGradient::interpolationMode(), it, lock, QList< T >::size(), and QGradient::stops().
Referenced by QOpenGL2PaintEngineExPrivate::bindTexture().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements QOpenGLSharedResource.
Definition at line 49 of file qopenglgradientcache.cpp.
References QMultiHash< Key, T >::clear(), and lock.
Here is the call graph for this function:
|
inline |
Definition at line 49 of file qopenglgradientcache_p.h.