Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qopenglpaintengine.cpp File Reference

(09e40152f8342644f1f002d1f0b6d31d715e7fd1)

#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.

◆ Q_TRACE_INSTRUMENT()

void Q_TRACE_INSTRUMENT ( qtopengl )

Definition at line 627 of file qopenglpaintengine.cpp.

◆ 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.

◆ qt_scaleForTransform()

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

Definition at line 2131 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.

◆ setCoords()

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

Definition at line 615 of file qopenglpaintengine.cpp.