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 <qsgrhitextureglyphcache_p.h>
Additional Inherited Members | |
Public Attributes inherited from QTextureGlyphCache | |
QHash< GlyphAndSubPixelPosition, Coord > | coords |
Public Attributes inherited from QFontEngineGlyphCache | |
QFontEngine::GlyphFormat | m_format |
QTransform | m_transform |
QColor | m_color |
Public Attributes inherited from QSharedData | |
QAtomicInt | ref |
Protected Member Functions inherited from QTextureGlyphCache | |
int | calculateSubPixelPositionCount (glyph_t) const |
Protected Attributes inherited from QTextureGlyphCache | |
QFontEngine * | m_current_fontengine |
QHash< GlyphAndSubPixelPosition, Coord > | m_pendingGlyphs |
int | m_w |
int | m_h |
int | m_cx |
int | m_cy |
int | m_currentRowHeight |
Definition at line 25 of file qsgrhitextureglyphcache_p.h.
QT_BEGIN_NAMESPACE QSGRhiTextureGlyphCache::QSGRhiTextureGlyphCache | ( | QSGDefaultRenderContext * | rc, |
QFontEngine::GlyphFormat | format, | ||
const QTransform & | matrix, | ||
const QColor & | color = QColor() ) |
Definition at line 11 of file qsgrhitextureglyphcache.cpp.
References QRhi::backend(), and QRhi::OpenGLES2.
QSGRhiTextureGlyphCache::~QSGRhiTextureGlyphCache | ( | ) |
Definition at line 24 of file qsgrhitextureglyphcache.cpp.
References QSGDefaultRenderContext::deferredReleaseGlyphCacheTexture().
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 97 of file qsgrhitextureglyphcache.cpp.
References QVarLengthArray< T, Prealloc >::isEmpty(), and Q_ASSERT.
void QSGRhiTextureGlyphCache::commitResourceUpdates | ( | QRhiResourceUpdateBatch * | mergeInto | ) |
Definition at line 217 of file qsgrhitextureglyphcache.cpp.
References QSGDefaultRenderContext::maybeGlyphCacheResourceUpdates(), and QSGDefaultRenderContext::resetGlyphCacheResources().
|
overridevirtual |
Reimplemented from QImageTextureGlyphCache.
Definition at line 53 of file qsgrhitextureglyphcache.cpp.
References QImageTextureGlyphCache::createTextureData(), and qMax().
bool QSGRhiTextureGlyphCache::eightBitFormatIsAlphaSwizzled | ( | ) | const |
Definition at line 225 of file qsgrhitextureglyphcache.cpp.
References QRhi::isFeatureSupported(), and QRhi::RedOrAlpha8IsRed.
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 172 of file qsgrhitextureglyphcache.cpp.
References QRhiTexture::BGRA8, QVarLengthArray< T, Prealloc >::cbegin(), QVarLengthArray< T, Prealloc >::cend(), QVarLengthArray< T, Prealloc >::clear(), QFontEngine::Format_A32, QFontEngine::Format_ARGB, QSGDefaultRenderContext::glyphCacheResourceUpdates(), QVarLengthArray< T, Prealloc >::isEmpty(), QFontEngineGlyphCache::m_format, QRhiTexture::RED_OR_ALPHA8, and QRhiTexture::RGBA8.
|
overridevirtual |
Reimplemented from QImageTextureGlyphCache.
Definition at line 151 of file qsgrhitextureglyphcache.cpp.
References QVarLengthArray< T, Prealloc >::append(), QImage::copy(), QImageTextureGlyphCache::fillTexture(), QImageTextureGlyphCache::image(), QRhiTextureSubresourceUploadDescription::setDestinationTopLeft(), QRhiTextureSubresourceUploadDescription::setImage(), and QTextureGlyphCache::textureMapForGlyph().
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 196 of file qsgrhitextureglyphcache.cpp.
References QFontEngine::Format_Mono, and QFontEngineGlyphCache::m_format.
|
inline |
Definition at line 48 of file qsgrhitextureglyphcache_p.h.
References QSize::height(), and qMax().
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 209 of file qsgrhitextureglyphcache.cpp.
References qMin(), QRhi::resourceLimit(), and QRhi::TextureSizeMax.
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 204 of file qsgrhitextureglyphcache.cpp.
References QRhi::resourceLimit(), and QRhi::TextureSizeMax.
|
overridevirtual |
Reimplemented from QImageTextureGlyphCache.
Definition at line 64 of file qsgrhitextureglyphcache.cpp.
References QRhiResourceUpdateBatch::copyTexture(), QSGDefaultRenderContext::deferredReleaseGlyphCacheTexture(), QRhiTexture::format(), QSGDefaultRenderContext::glyphCacheResourceUpdates(), QSize::height(), QImageTextureGlyphCache::image(), QRhiTexture::pixelSize(), qMax(), qMin(), QImageTextureGlyphCache::resizeTextureData(), QRhiTextureSubresourceUploadDescription::setSourceSize(), and QSize::width().
|
inline |
Definition at line 42 of file qsgrhitextureglyphcache_p.h.
|
inline |
Definition at line 47 of file qsgrhitextureglyphcache_p.h.
References qMax(), and QSize::width().