![]() |
Qt 6.x
The Qt SDK
|
#include <qopengltextureglyphcache_p.h>
Inheritance diagram for QOpenGLTextureGlyphCache:
Collaboration diagram for QOpenGLTextureGlyphCache:Public Types | |
| enum | FilterMode { Nearest , Linear } |
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 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.
Here is the call graph for this function:| QOpenGLTextureGlyphCache::~QOpenGLTextureGlyphCache | ( | ) |
Definition at line 51 of file qopengltextureglyphcache.cpp.
References clear(), and qDebug.
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 425 of file qopengltextureglyphcache.cpp.
References QOpenGLContext::currentContext(), QTextureGlyphCache::maxTextureHeight(), and qMin().
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 416 of file qopengltextureglyphcache.cpp.
References QOpenGLContext::currentContext(), and QTextureGlyphCache::maxTextureWidth().
Here is the call graph for this function:
|
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.
Here is the call graph for this function:
|
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().
Here is the caller graph for this function: