Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qopengltextureglyphcache.cpp File Reference
#include "qopengltextureglyphcache_p.h"
#include <private/qopenglpaintengine_p.h>
#include "private/qopenglengineshadersource_p.h"
#include <private/qopenglextensions_p.h>
#include <qrgb.h>
#include <private/qdrawhelper_p.h>
+ Include dependency graph for qopengltextureglyphcache.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE int next_qopengltextureglyphcache_serial_number ()
 
static bool isCoreProfile ()
 
static void load_glyph_image_to_texture (QOpenGLContext *ctx, QImage &img, GLuint texture, int tx, int ty)
 
static void load_glyph_image_region_to_texture (QOpenGLContext *ctx, const QImage &srcImg, int x, int y, int w, int h, GLuint texture, int tx, int ty)
 

Function Documentation

◆ isCoreProfile()

static bool isCoreProfile ( )
inlinestatic

Definition at line 60 of file qopengltextureglyphcache.cpp.

References QSurfaceFormat::CoreProfile, QOpenGLContext::currentContext(), QOpenGLContext::format(), and QSurfaceFormat::profile().

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders(), QOpenGLTextureGlyphCache::createTextureData(), load_glyph_image_to_texture(), and QOpenGLTextureGlyphCache::resizeTextureData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_glyph_image_region_to_texture()

static void load_glyph_image_region_to_texture ( QOpenGLContext ctx,
const QImage srcImg,
int  x,
int  y,
int  w,
int  h,
GLuint  texture,
int  tx,
int  ty 
)
static

Definition at line 222 of file qopengltextureglyphcache.cpp.

References QImage::copy(), QImage::height(), load_glyph_image_to_texture(), Q_ASSERT, and QImage::width().

Referenced by QOpenGLTextureGlyphCache::fillTexture(), and QOpenGLTextureGlyphCache::resizeTextureData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load_glyph_image_to_texture()

static void load_glyph_image_to_texture ( QOpenGLContext ctx,
QImage img,
GLuint  texture,
int  tx,
int  ty 
)
static

Definition at line 152 of file qopengltextureglyphcache.cpp.

References ARGB2RGBA(), avg, fmt, QImage::Format_ARGB32_Premultiplied, QImage::Format_Grayscale8, QImage::Format_Mono, QImage::Format_RGB32, funcs, GL_BGRA, GL_RED, GL_RGBA, GL_UNSIGNED_BYTE, GLenum(), isCoreProfile(), Q_BIG_ENDIAN, qAlpha(), qBlue(), qGreen(), qRed(), QRgb, and qRgba().

Referenced by QOpenGLTextureGlyphCache::fillTexture(), and load_glyph_image_region_to_texture().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ next_qopengltextureglyphcache_serial_number()

static QT_BEGIN_NAMESPACE int next_qopengltextureglyphcache_serial_number ( )
static

Definition at line 14 of file qopengltextureglyphcache.cpp.

References Q_BASIC_ATOMIC_INITIALIZER.