Support pen color in QOpenGLTextureGlyphCache
This is an enabler for supporting pen color for color fonts in Qt Quick. Task-number: QTBUG-74761 Change-Id: I3e605f939e6677cbbd4a650ae7998dea8fd2d7a9 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>bb10
parent
a4718f1274
commit
94570dc49a
|
|
@ -53,8 +53,8 @@ static int next_qopengltextureglyphcache_serial_number()
|
|||
return 1 + serial.fetchAndAddRelaxed(1);
|
||||
}
|
||||
|
||||
QOpenGLTextureGlyphCache::QOpenGLTextureGlyphCache(QFontEngine::GlyphFormat format, const QTransform &matrix)
|
||||
: QImageTextureGlyphCache(format, matrix)
|
||||
QOpenGLTextureGlyphCache::QOpenGLTextureGlyphCache(QFontEngine::GlyphFormat format, const QTransform &matrix, const QColor &color)
|
||||
: QImageTextureGlyphCache(format, matrix, color)
|
||||
, m_textureResource(0)
|
||||
, pex(0)
|
||||
, m_blitProgram(0)
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ public:
|
|||
class Q_GUI_EXPORT QOpenGLTextureGlyphCache : public QImageTextureGlyphCache
|
||||
{
|
||||
public:
|
||||
QOpenGLTextureGlyphCache(QFontEngine::GlyphFormat glyphFormat, const QTransform &matrix);
|
||||
QOpenGLTextureGlyphCache(QFontEngine::GlyphFormat glyphFormat, const QTransform &matrix, const QColor &color = QColor());
|
||||
~QOpenGLTextureGlyphCache();
|
||||
|
||||
virtual void createTextureData(int width, int height) override;
|
||||
|
|
|
|||
Loading…
Reference in New Issue