![]() |
Qt 6.x
The Qt SDK
|
#include <qopenglgradientcache_p.h>
Public Member Functions | |
QOpenGL2GradientCache (QOpenGLContext *) | |
~QOpenGL2GradientCache () | |
GLuint | getBuffer (const QGradient &gradient, qreal opacity) |
int | paletteSize () const |
void | invalidateResource () override |
void | freeResource (QOpenGLContext *ctx) override |
![]() | |
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().
|
static |
Definition at line 44 of file qopenglgradientcache.cpp.
References cacheForContext(), and context.
Referenced by QOpenGL2PaintEngineExPrivate::bindTexture(), and cacheForContext().
|
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().
|
overridevirtual |
Implements QOpenGLSharedResource.
Definition at line 49 of file qopenglgradientcache.cpp.
References QMultiHash< Key, T >::clear(), and lock.
|
inline |
Definition at line 49 of file qopenglgradientcache_p.h.