![]() |
Qt 6.x
The Qt SDK
|
#include <qsgrhidistancefieldglyphcache_p.h>
Additional Inherited Members | |
![]() | |
virtual void | requestGlyphs (const QSet< glyph_t > &glyphs)=0 |
virtual void | storeGlyphs (const QList< QDistanceField > &glyphs)=0 |
virtual void | referenceGlyphs (const QSet< glyph_t > &glyphs)=0 |
virtual void | releaseGlyphs (const QSet< glyph_t > &glyphs)=0 |
void | setGlyphsPosition (const QList< GlyphPosition > &glyphs) |
void | setGlyphsTexture (const QVector< glyph_t > &glyphs, const Texture &tex) |
void | markGlyphsToRender (const QVector< glyph_t > &glyphs) |
void | removeGlyph (glyph_t glyph) |
void | updateRhiTexture (QRhiTexture *oldTex, QRhiTexture *newTex, const QSize &newTexSize) |
bool | containsGlyph (glyph_t glyph) |
GlyphData & | glyphData (glyph_t glyph) |
GlyphData & | emptyData (glyph_t glyph) |
int | baseFontSize () const |
![]() | |
bool | m_doubleGlyphResolution |
int | m_renderTypeQuality |
QRawFont | m_referenceFont |
Definition at line 26 of file qsgrhidistancefieldglyphcache_p.h.
QSGRhiDistanceFieldGlyphCache::QSGRhiDistanceFieldGlyphCache | ( | QSGDefaultRenderContext * | rc, |
const QRawFont & | font, | ||
int | renderTypeQuality | ||
) |
Definition at line 22 of file qsgrhidistancefieldglyphcache.cpp.
References font.
|
virtual |
Definition at line 33 of file qsgrhidistancefieldglyphcache.cpp.
References QSGDefaultRenderContext::deferredReleaseGlyphCacheTexture().
void QSGRhiDistanceFieldGlyphCache::commitResourceUpdates | ( | QRhiResourceUpdateBatch * | mergeInto | ) |
Definition at line 512 of file qsgrhidistancefieldglyphcache.cpp.
References QSGDefaultRenderContext::maybeGlyphCacheResourceUpdates(), QRhiResourceUpdateBatch::merge(), and QSGDefaultRenderContext::resetGlyphCacheResources().
bool QSGRhiDistanceFieldGlyphCache::createFullSizeTextures | ( | ) | const |
Definition at line 251 of file qsgrhidistancefieldglyphcache.cpp.
References QSGDistanceFieldGlyphCache::glyphCount(), and QT_DISTANCEFIELD_HIGHGLYPHCOUNT().
|
overridevirtual |
Implements QSGDistanceFieldGlyphCache.
Definition at line 520 of file qsgrhidistancefieldglyphcache.cpp.
References QRhi::isFeatureSupported(), and QRhi::RedOrAlpha8IsRed.
|
overridevirtual |
Reimplemented from QSGDistanceFieldGlyphCache.
Definition at line 105 of file qsgrhidistancefieldglyphcache.cpp.
References QSet< T >::empty().
|
inline |
Definition at line 43 of file qsgrhidistancefieldglyphcache_p.h.
int QSGRhiDistanceFieldGlyphCache::maxTextureSize | ( | ) | const |
Definition at line 256 of file qsgrhidistancefieldglyphcache.cpp.
References QRhi::resourceLimit(), and QRhi::TextureSizeMax.
Referenced by requestGlyphs().
|
overridevirtual |
Implements QSGDistanceFieldGlyphCache.
Definition at line 168 of file qsgrhidistancefieldglyphcache.cpp.
Implements QSGDistanceFieldGlyphCache.
Definition at line 174 of file qsgrhidistancefieldglyphcache.cpp.
Implements QSGDistanceFieldGlyphCache.
Definition at line 41 of file qsgrhidistancefieldglyphcache.cpp.
References QSGAreaAllocator::allocate(), QList< T >::append(), boundingRect(), QSGDistanceFieldGlyphCache::GlyphData::boundingRect, QSet< T >::constBegin(), QSet< T >::constEnd(), QSGAreaAllocator::deallocate(), QSGDistanceFieldGlyphCache::distanceFieldRadius(), QSGDistanceFieldGlyphCache::glyphData(), QSGDistanceFieldGlyphCache::glyphTexCoord(), QRect::height(), QRectF::height(), QHash< Key, T >::insert(), QSet< T >::isEmpty(), QRect::isNull(), it, QSGDistanceFieldGlyphCache::markGlyphsToRender(), maxTextureSize(), Q_ASSERT, qCeil(), QSG_RHI_DISTANCEFIELD_GLYPH_CACHE_PADDING, QHash< Key, T >::remove(), QSet< T >::remove(), QSGDistanceFieldGlyphCache::removeGlyph(), QSGDistanceFieldGlyphCache::setGlyphsPosition(), QRect::topLeft(), QRect::width(), QRectF::width(), QRect::x(), QSGDistanceFieldGlyphCache::TexCoord::x, QRect::y(), and QSGDistanceFieldGlyphCache::TexCoord::y.
|
overridevirtual |
Implements QSGDistanceFieldGlyphCache.
Definition at line 527 of file qsgrhidistancefieldglyphcache.cpp.
References QRhi::isFeatureSupported(), and QRhi::ScreenSpaceDerivatives.
|
inline |
Definition at line 42 of file qsgrhidistancefieldglyphcache_p.h.
|
overridevirtual |
Implements QSGDistanceFieldGlyphCache.
Definition at line 110 of file qsgrhidistancefieldglyphcache.cpp.
References QList< T >::at(), QDistanceField::constBits(), QDistanceField::copy(), desc, QDistanceField::glyph(), QSGDefaultRenderContext::glyphCacheResourceUpdates(), QSGDistanceFieldGlyphCache::glyphTexCoord(), QDistanceField::height(), i, qCeil(), QDistanceField::scanLine(), QRhiTextureSubresourceUploadDescription::setDestinationTopLeft(), QSGDistanceFieldGlyphCache::setGlyphsTexture(), QRhiTextureSubresourceUploadDescription::setSourceSize(), QList< T >::size(), QRhiResourceUpdateBatch::uploadTexture(), useTextureResizeWorkaround(), QHash< Key, T >::value(), and QDistanceField::width().
bool QSGRhiDistanceFieldGlyphCache::useTextureResizeWorkaround | ( | ) | const |
Definition at line 240 of file qsgrhidistancefieldglyphcache.cpp.
References QRhi::backend(), QRhi::OpenGLES2, and set.
Referenced by storeGlyphs().