Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QOpenGL2GradientCache Class Reference

#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
 
QOpenGLContextGroupgroup () const
 
void free ()
 

Static Public Member Functions

static QOpenGL2GradientCachecacheForContext (QOpenGLContext *context)
 

Additional Inherited Members

Detailed Description

Definition at line 27 of file qopenglgradientcache_p.h.

Constructor & Destructor Documentation

◆ QOpenGL2GradientCache()

QOpenGL2GradientCache::QOpenGL2GradientCache ( QOpenGLContext * ctx)

Definition at line 34 of file qopenglgradientcache.cpp.

◆ ~QOpenGL2GradientCache()

QOpenGL2GradientCache::~QOpenGL2GradientCache ( )

Definition at line 39 of file qopenglgradientcache.cpp.

References QMultiHash< Key, T >::clear().

+ Here is the call graph for this function:

Member Function Documentation

◆ cacheForContext()

QOpenGL2GradientCache * QOpenGL2GradientCache::cacheForContext ( QOpenGLContext * context)
static

Definition at line 44 of file qopenglgradientcache.cpp.

References context.

Referenced by QOpenGL2PaintEngineExPrivate::bindTexture().

+ Here is the caller graph for this function:

◆ freeResource()

void QOpenGL2GradientCache::freeResource ( QOpenGLContext * ctx)
overridevirtual

Implements QOpenGLSharedResource.

Definition at line 55 of file qopenglgradientcache.cpp.

◆ getBuffer()

GLuint QOpenGL2GradientCache::getBuffer ( const QGradient & gradient,
qreal opacity )

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

+ Here is the call graph for this function:

◆ invalidateResource()

void QOpenGL2GradientCache::invalidateResource ( )
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:

◆ paletteSize()

int QOpenGL2GradientCache::paletteSize ( ) const
inline

Definition at line 49 of file qopenglgradientcache_p.h.


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