Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qsgrhidistancefieldglyphcache_p.h>
Additional Inherited Members | |
Protected Member Functions inherited from QSGDistanceFieldGlyphCache | |
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 |
Protected Attributes inherited from QSGDistanceFieldGlyphCache | |
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(), 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(), boundingRect(), QSGDistanceFieldGlyphCache::GlyphData::boundingRect, QSet< T >::constBegin(), QSGAreaAllocator::deallocate(), QSGDistanceFieldGlyphCache::distanceFieldRadius(), QSGDistanceFieldGlyphCache::GlyphPosition::glyph, QSGDistanceFieldGlyphCache::glyphData(), QSGDistanceFieldGlyphCache::glyphTexCoord(), QRect::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(), QRect::x(), and QRect::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 QDistanceField::constBits(), QDistanceField::copy(), QDistanceField::glyph(), QSGDefaultRenderContext::glyphCacheResourceUpdates(), QSGDistanceFieldGlyphCache::glyphTexCoord(), QDistanceField::height(), i, qCeil(), QDistanceField::scanLine(), QRhiTextureSubresourceUploadDescription::setDestinationTopLeft(), QSGDistanceFieldGlyphCache::setGlyphsTexture(), QRhiTextureSubresourceUploadDescription::setSourceSize(), QSGDistanceFieldGlyphCache::Texture::texture, 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().