![]() |
Qt 6.x
The Qt SDK
|
#include <qopengltextureglyphcache_p.h>
Public Types | |
enum | FilterMode { Nearest , Linear } |
Additional Inherited Members | |
![]() | |
QHash< GlyphAndSubPixelPosition, Coord > | coords |
![]() | |
QFontEngine::GlyphFormat | m_format |
QTransform | m_transform |
QColor | m_color |
![]() | |
QAtomicInt | ref |
![]() | |
int | calculateSubPixelPositionCount (glyph_t) const |
![]() | |
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 74 of file qopengltextureglyphcache_p.h.
Enumerator | |
---|---|
Nearest | |
Linear |
Definition at line 112 of file qopengltextureglyphcache_p.h.
QOpenGLTextureGlyphCache::QOpenGLTextureGlyphCache | ( | QFontEngine::GlyphFormat | glyphFormat, |
const QTransform & | matrix, | ||
const QColor & | color = QColor() |
||
) |
Definition at line 20 of file qopengltextureglyphcache.cpp.
References QOpenGLContext::currentContext(), and qDebug.
QOpenGLTextureGlyphCache::~QOpenGLTextureGlyphCache | ( | ) |
Definition at line 51 of file qopengltextureglyphcache.cpp.
References clear(), and qDebug.
void QOpenGLTextureGlyphCache::clear | ( | ) |
Definition at line 437 of file qopengltextureglyphcache.cpp.
References QOpenGLSharedResource::free(), QTextureGlyphCache::m_currentRowHeight, QTextureGlyphCache::m_cx, QTextureGlyphCache::m_cy, QTextureGlyphCache::m_h, and QTextureGlyphCache::m_w.
Referenced by ~QOpenGLTextureGlyphCache().
|
inline |
Definition at line 108 of file qopengltextureglyphcache_p.h.
|
overridevirtual |
Reimplemented from QImageTextureGlyphCache.
Definition at line 66 of file qopengltextureglyphcache.cpp.
References QOpenGLBuffer::allocate(), QOpenGLBuffer::bind(), QOpenGLBuffer::create(), QOpenGLVertexArrayObject::create(), QImageTextureGlyphCache::createTextureData(), QOpenGLContext::currentContext(), QFontEngine::Format_A32, QFontEngine::Format_ARGB, funcs, GL_CLAMP_TO_EDGE, GL_R8, GL_RED, GL_RGBA, GL_UNSIGNED_BYTE, GLenum(), GLfloat(), GLint(), height(), i, isCoreProfile(), QOpenGLBuffer::isCreated(), QOpenGLVertexArrayObject::isCreated(), QTextureGlyphCache::isNull(), QFontEngineGlyphCache::m_format, QOpenGLGlyphTexture::m_height, QOpenGLGlyphTexture::m_texture, QOpenGLGlyphTexture::m_width, Nearest, qWarning, QOpenGLBuffer::release(), and width().
Referenced by resizeTextureData().
|
overridevirtual |
Reimplemented from QImageTextureGlyphCache.
Definition at line 388 of file qopengltextureglyphcache.cpp.
References QOpenGLContext::currentContext(), QImageTextureGlyphCache::fillTexture(), QImageTextureGlyphCache::image(), load_glyph_image_region_to_texture(), load_glyph_image_to_texture(), QOpenGLGlyphTexture::m_texture, qWarning, and QTextureGlyphCache::textureMapForGlyph().
|
inline |
Definition at line 116 of file qopengltextureglyphcache_p.h.
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 408 of file qopengltextureglyphcache.cpp.
References QFontEngine::Format_Mono, and QFontEngineGlyphCache::m_format.
|
inline |
Definition at line 100 of file qopengltextureglyphcache_p.h.
References QOpenGLGlyphTexture::m_height.
Referenced by createTextureData().
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 425 of file qopengltextureglyphcache.cpp.
References QOpenGLContext::currentContext(), QTextureGlyphCache::maxTextureHeight(), and qMin().
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 416 of file qopengltextureglyphcache.cpp.
References QOpenGLContext::currentContext(), and QTextureGlyphCache::maxTextureWidth().
|
inline |
Definition at line 121 of file qopengltextureglyphcache_p.h.
|
overridevirtual |
Reimplemented from QImageTextureGlyphCache.
Definition at line 240 of file qopengltextureglyphcache.cpp.
References QOpenGLShaderProgram::addCacheableShaderFromSourceCode(), QOpenGLShaderProgram::bind(), QOpenGLVertexArrayObject::bind(), QOpenGLShaderProgram::bindAttributeLocation(), QOpenGLEngineShaderManager::blitProgram(), BrushDrawingMode, QSurfaceFormat::CoreProfile, createTextureData(), QOpenGLContext::currentContext(), QOpenGLShaderProgram::disableAttributeArray(), QOpenGLShader::Fragment, funcs, GL_CLAMP_TO_EDGE, GL_COLOR_ATTACHMENT0, GL_FRAMEBUFFER, GL_FRAMEBUFFER_BINDING, GL_RENDERBUFFER, GL_RGBA, GL_TEXTURE0, GL_UNSIGNED_BYTE, GLint(), GLuint, QOpenGL2PaintEngineExPrivate::height, QImageTextureGlyphCache::image(), isCoreProfile(), QOpenGLVertexArrayObject::isCreated(), QOpenGLShaderProgram::link(), load_glyph_image_region_to_texture(), QOpenGLGlyphTexture::m_fbo, QOpenGLGlyphTexture::m_height, QOpenGLGlyphTexture::m_texture, QOpenGLGlyphTexture::m_width, Nearest, qMin(), qopenglslImageSrcFragmentShader, qopenglslMainFragmentShader, qopenglslMainWithTexCoordsVertexShader, qopenglslUntransformedPositionVertexShader, QT_IMAGE_TEXTURE_UNIT, QT_TEXTURE_COORDS_ATTR, QT_VERTEX_COORDS_ATTR, qWarning, QOpenGLVertexArrayObject::release(), QImageTextureGlyphCache::resizeTextureData(), QOpenGLShaderProgram::setUniformValue(), QOpenGL2PaintEngineExPrivate::shaderManager, QOpenGL2PaintEngineExPrivate::transferMode(), QOpenGL2PaintEngineExPrivate::updateClipScissorTest(), QOpenGL2PaintEngineExPrivate::uploadData(), QOpenGLEngineShaderManager::useBlitProgram(), QOpenGLShader::Vertex, and QOpenGL2PaintEngineExPrivate::width.
|
inline |
Definition at line 110 of file qopengltextureglyphcache_p.h.
|
inline |
Definition at line 117 of file qopengltextureglyphcache_p.h.
|
inline |
Definition at line 106 of file qopengltextureglyphcache_p.h.
|
inline |
Definition at line 89 of file qopengltextureglyphcache_p.h.
References QOpenGLGlyphTexture::m_texture.
|
inline |
Definition at line 95 of file qopengltextureglyphcache_p.h.
References QOpenGLGlyphTexture::m_width.
Referenced by createTextureData().