4#ifndef QOPENGLGRADIENTCACHE_P_H
5#define QOPENGLGRADIENTCACHE_P_H
20#include <private/qopenglcontext_p.h>
21#include <QtCore/qmutex.h>
32 stops(std::move(
s)), opacity(op), interpolationMode(
mode) {}
55 inline int maxCacheSize()
const {
return 60; }
56 inline void generateGradientColorTable(
const QGradient& gradient,
59 inline void generateGradientColorTable(
const QGradient& gradient,
65 QOpenGLGradientColorTableHash cache;
static QOpenGL2GradientCache * cacheForContext(QOpenGLContext *context)
GLuint getBuffer(const QGradient &gradient, qreal opacity)
void freeResource(QOpenGLContext *ctx) override
void invalidateResource() override
The QOpenGLSharedResource class is used to keep track of resources that are shared between OpenGL con...
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
unsigned long long quint64