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
qopenglpaintengine.cpp File Reference

(7cf6c57648c67bea42a54c561dc3c1616a305756)

#include <private/qopenglgradientcache_p.h>
#include <private/qopengltexturecache_p.h>
#include "qopenglpaintengine_p.h"
#include "qopenglpaintdevice_p.h"
#include <string.h>
#include <qmath.h>
#include <private/qopengl_p.h>
#include <private/qopenglcontext_p.h>
#include <private/qopenglextensions_p.h>
#include <private/qpaintengineex_p.h>
#include <QPaintEngine>
#include <private/qpainter_p.h>
#include <private/qfontengine_p.h>
#include <private/qdatabuffer_p.h>
#include <private/qstatictext_p.h>
#include <private/qtriangulator_p.h>
#include <private/qopenglengineshadermanager_p.h>
#include <private/qopengl2pexvertexarray_p.h>
#include <private/qopengltextureglyphcache_p.h>
#include <QDebug>
#include <qtopengl_tracepoints_p.h>
+ Include dependency graph for qopenglpaintengine.cpp:

Go to the source code of this file.

Classes

struct  ImageWithBindOptions
 
struct  QOpenGL2PEVectorPathCache
 

Macros

#define GL_KHR_blend_equation_advanced   1
 
#define GL_MULTIPLY_KHR   0x9294
 
#define GL_SCREEN_KHR   0x9295
 
#define GL_OVERLAY_KHR   0x9296
 
#define GL_DARKEN_KHR   0x9297
 
#define GL_LIGHTEN_KHR   0x9298
 
#define GL_COLORDODGE_KHR   0x9299
 
#define GL_COLORBURN_KHR   0x929A
 
#define GL_HARDLIGHT_KHR   0x929B
 
#define GL_SOFTLIGHT_KHR   0x929C
 
#define GL_DIFFERENCE_KHR   0x929E
 
#define GL_EXCLUSION_KHR   0x92A0
 
#define GL_KHR_blend_equation_advanced_coherent   1
 
#define GL_BLEND_ADVANCED_COHERENT_KHR   0x9285
 

Functions

QT_BEGIN_NAMESPACE Q_GUI_EXPORT QImage qt_imageForBrush (int brushStyle, bool invert)
 
QColor qt_premultiplyColor (QColor c, GLfloat opacity)
 
static bool isPowerOfTwo (int x)
 
static void setCoords (GLfloat *coords, const QOpenGLRect &rect)
 
void Q_TRACE_INSTRUMENT (qtopengl) QOpenGL2PaintEngineExPrivate
 
Q_GUI_EXPORT bool qt_scaleForTransform (const QTransform &transform, qreal *scale)
 
static const QRectF scaleRect (const QRectF &r, qreal sx, qreal sy)
 

Macro Definition Documentation

◆ GL_BLEND_ADVANCED_COHERENT_KHR

#define GL_BLEND_ADVANCED_COHERENT_KHR   0x9285

Definition at line 73 of file qopenglpaintengine.cpp.

◆ GL_COLORBURN_KHR

#define GL_COLORBURN_KHR   0x929A

Definition at line 64 of file qopenglpaintengine.cpp.

◆ GL_COLORDODGE_KHR

#define GL_COLORDODGE_KHR   0x9299

Definition at line 63 of file qopenglpaintengine.cpp.

◆ GL_DARKEN_KHR

#define GL_DARKEN_KHR   0x9297

Definition at line 61 of file qopenglpaintengine.cpp.

◆ GL_DIFFERENCE_KHR

#define GL_DIFFERENCE_KHR   0x929E

Definition at line 67 of file qopenglpaintengine.cpp.

◆ GL_EXCLUSION_KHR

#define GL_EXCLUSION_KHR   0x92A0

Definition at line 68 of file qopenglpaintengine.cpp.

◆ GL_HARDLIGHT_KHR

#define GL_HARDLIGHT_KHR   0x929B

Definition at line 65 of file qopenglpaintengine.cpp.

◆ GL_KHR_blend_equation_advanced

#define GL_KHR_blend_equation_advanced   1

Definition at line 57 of file qopenglpaintengine.cpp.

◆ GL_KHR_blend_equation_advanced_coherent

#define GL_KHR_blend_equation_advanced_coherent   1

Definition at line 72 of file qopenglpaintengine.cpp.

◆ GL_LIGHTEN_KHR

#define GL_LIGHTEN_KHR   0x9298

Definition at line 62 of file qopenglpaintengine.cpp.

◆ GL_MULTIPLY_KHR

#define GL_MULTIPLY_KHR   0x9294

Definition at line 58 of file qopenglpaintengine.cpp.

◆ GL_OVERLAY_KHR

#define GL_OVERLAY_KHR   0x9296

Definition at line 60 of file qopenglpaintengine.cpp.

◆ GL_SCREEN_KHR

#define GL_SCREEN_KHR   0x9295

Definition at line 59 of file qopenglpaintengine.cpp.

◆ GL_SOFTLIGHT_KHR

#define GL_SOFTLIGHT_KHR   0x929C

Definition at line 66 of file qopenglpaintengine.cpp.

Function Documentation

◆ isPowerOfTwo()

static bool isPowerOfTwo ( int x)
inlinestatic

Definition at line 259 of file qopenglpaintengine.cpp.

Referenced by QSGDefaultInternalImageNode::supportsWrap(), QOpenGL2PaintEngineExPrivate::updateBrushTexture(), and QSGOpaqueTextureMaterialRhiShader::updateSampledImage().

+ Here is the caller graph for this function:

◆ Q_TRACE_INSTRUMENT()

◆ qt_imageForBrush()

QT_BEGIN_NAMESPACE Q_GUI_EXPORT QImage qt_imageForBrush ( int brushStyle,
bool invert )

Definition at line 146 of file qbrush.cpp.

◆ qt_premultiplyColor()

QColor qt_premultiplyColor ( QColor c,
GLfloat opacity )
inline

Definition at line 99 of file qopenglpaintengine.cpp.

References QColor::alphaF().

Referenced by QOpenGL2PaintEngineExPrivate::drawCachedGlyphs(), QOpenGL2PaintEngineExPrivate::drawPixmapFragments(), Q_TRACE_INSTRUMENT(), and QOpenGL2PaintEngineExPrivate::updateBrushUniforms().

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

◆ qt_scaleForTransform()

Q_GUI_EXPORT bool qt_scaleForTransform ( const QTransform & transform,
qreal * scale )
extern

Definition at line 2148 of file qtransform.cpp.

◆ scaleRect()

static const QRectF scaleRect ( const QRectF & r,
qreal sx,
qreal sy )
static

Definition at line 1510 of file qopenglpaintengine.cpp.

Referenced by QWindowsVistaStylePrivate::drawBackgroundDirectly(), QWindowsVistaStylePrivate::drawBackgroundThruNativeBuffer(), QOpenGL2PaintEngineEx::drawImage(), and QOpenGL2PaintEngineEx::drawPixmap().

+ Here is the caller graph for this function:

◆ setCoords()

static void setCoords ( GLfloat * coords,
const QOpenGLRect & rect )
inlinestatic

Definition at line 615 of file qopenglpaintengine.cpp.

References rect.

Referenced by QOpenGL2PaintEngineExPrivate::composite(), and Q_TRACE_INSTRUMENT().

+ Here is the caller graph for this function: