30 QFontEngine::GlyphFormat format,
const QTransform &matrix,
31 const QColor &color = QColor());
37 void fillTexture(
const Coord &c, glyph_t glyph,
const QFixedPoint &subPixelPosition)
override;
43 QRhiTexture *
texture()
const {
return m_texture; }
48 int width()
const {
return qMax(0, m_size.width()); }
49 int height()
const {
return qMax(0, m_size.height()); }
54 void prepareGlyphImage(QImage *img);
55 QRhiTexture *createEmptyTexture(QRhiTexture::Format format);
57 QSGDefaultRenderContext *m_rc;
59 bool m_resizeWithTextureCopy;
60 QRhiTexture *m_texture =
nullptr;
63 QVarLengthArray<QRhiTextureUploadEntry, 16> m_uploads;
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
~QSGRhiTextureGlyphCache()
void resizeTextureData(int width, int height) override
void commitResourceUpdates(QRhiResourceUpdateBatch *mergeInto)
void endFillTexture() override
QRhiTexture * texture() const
void beginFillTexture() override
int glyphPadding() const override
int maxTextureHeight() const override
QSGRhiTextureGlyphCache(QSGDefaultRenderContext *rc, QFontEngine::GlyphFormat format, const QTransform &matrix, const QColor &color=QColor())
bool eightBitFormatIsAlphaSwizzled() const
int maxTextureWidth() const override
void fillTexture(const Coord &c, glyph_t glyph, const QFixedPoint &subPixelPosition) override
void createTextureData(int width, int height) override