29 QFontEngine::GlyphFormat format,
const QTransform &matrix,
30 const QColor &color = QColor());
36 void fillTexture(
const Coord &c, glyph_t glyph,
const QFixedPoint &subPixelPosition)
override;
42 QRhiTexture *
texture()
const {
return m_texture; }
47 int width()
const {
return qMax(0, m_size.width()); }
48 int height()
const {
return qMax(0, m_size.height()); }
53 void prepareGlyphImage(QImage *img);
54 QRhiTexture *createEmptyTexture(QRhiTexture::Format format);
56 QSGDefaultRenderContext *m_rc;
58 bool m_resizeWithTextureCopy;
59 QRhiTexture *m_texture =
nullptr;
62 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