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>.
Loading...
Searching...
No Matches
qopengltextureglyphcache.cpp File Reference

(f6626cf3c3e7336567293b4b943a97b76e4e5f3d)

#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, and QOpenGLContext::currentContext().

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(), load_glyph_image_to_texture(), and Q_ASSERT.

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.