4#ifndef QSGDISTANCEFIELDGLYPHNODE_P_P_H
5#define QSGDISTANCEFIELDGLYPHNODE_P_P_H
18#include <QtQuick/qsgmaterial.h>
19#include <QtQuick/private/qsgplaintexture_p.h>
51 bool updateTextureSize();
52 bool updateTextureSizeAndWrapper();
114 const auto rgbColor =
color.toRgb();
115 m_color =
QVector4D(rgbColor.redF(), rgbColor.greenF(), rgbColor.blueF(), rgbColor.alphaF());
125 const auto rgbColor =
color.toRgb();
126 m_color =
QVector4D(rgbColor.redF(), rgbColor.greenF(), rgbColor.blueF(), rgbColor.alphaF());
The QColor class provides colors based on RGB, HSV or CMYK values.
\inmodule QtCore\reentrant
void setShift(const QPointF &shift)
const QPointF & shift() const
QSGMaterialType * type() const override=0
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialSh...
const QVector4D & styleColor() const
QSGMaterialShader * createShader(QSGRendererInterface::RenderMode renderMode) const override=0
This function returns a new instance of a the QSGMaterialShader implementation used to render geometr...
QSize textureSize() const
const QSGDistanceFieldGlyphCache::Texture * m_texture
const QSGDistanceFieldGlyphCache::Texture * texture() const
QSGTexture * wrapperTexture() const
void setGlyphCache(QSGDistanceFieldGlyphCache *a)
const QVector4D & color() const
void setTexture(const QSGDistanceFieldGlyphCache::Texture *tex)
void setFontScale(qreal fontScale)
QSGDistanceFieldGlyphCache * glyphCache() const
QSGDistanceFieldGlyphCache * m_glyph_cache
QSGPlainTexture * m_sgTexture
void setColor(const QColor &color) override
void setColor(const QColor &color) override
The QSGMaterialShader class represents a graphics API independent shader program.
The QSGMaterial class encapsulates rendering state for a shader program.
virtual QSGMaterialShader * createShader(QSGRendererInterface::RenderMode renderMode) const =0
This function returns a new instance of a the QSGMaterialShader implementation used to render geometr...
virtual int compare(const QSGMaterial *other) const
Compares this material to other and returns 0 if they are equal; -1 if this material should sort befo...
virtual QSGMaterialType * type() const =0
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialSh...
RenderMode
\value RenderMode2D Normal 2D rendering \value RenderMode2DNoDepthBuffer Normal 2D rendering with dep...
The QVector4D class represents a vector or vertex in 4D space.
Combined button and popup list for selecting options.
static QT_WARNING_DISABLE_FLOAT_COMPARE ShiftResult shift(const QBezier *orig, QBezier *shifted, qreal offset, qreal threshold)
GLboolean GLboolean GLboolean GLboolean a
[7]
myFilter setColor(QColor(128, 0, 0))
The QSGMaterialType class is used as a unique type token in combination with QSGMaterial.