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
qsggradientcache.cpp File Reference

(bde55ad574ac84440e2cdc9c1122a344bb1cb67a)

#include "qsggradientcache_p.h"
#include <QtGui/private/qdrawhelper_p.h>
#include <QtGui/rhi/qrhi.h>
#include <QtQuick/qsgtexture.h>
#include <QtQuick/private/qsgplaintexture_p.h>
+ Include dependency graph for qsggradientcache.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE void generateGradientColorTable (const QSGGradientCacheKey &gradient, uint *colorTable, int size, float opacity)
 

Function Documentation

◆ generateGradientColorTable()

static QT_BEGIN_NAMESPACE void generateGradientColorTable ( const QSGGradientCacheKey & gradient,
uint * colorTable,
int size,
float opacity )
static

Definition at line 14 of file qsggradientcache.cpp.

References ARGB2RGBA(), ARGB_COMBINE_ALPHA, dist(), i, INTERPOLATE_PIXEL_256(), pos, Q_ASSERT, qPremultiply(), qRound(), and QSGGradientCacheKey::stops.

Referenced by QSGGradientCache::get().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: