![]() |
Qt 6.x
The Qt SDK
|
#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>
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) |
#define GL_BLEND_ADVANCED_COHERENT_KHR 0x9285 |
Definition at line 73 of file qopenglpaintengine.cpp.
#define GL_COLORBURN_KHR 0x929A |
Definition at line 64 of file qopenglpaintengine.cpp.
#define GL_COLORDODGE_KHR 0x9299 |
Definition at line 63 of file qopenglpaintengine.cpp.
#define GL_DARKEN_KHR 0x9297 |
Definition at line 61 of file qopenglpaintengine.cpp.
#define GL_DIFFERENCE_KHR 0x929E |
Definition at line 67 of file qopenglpaintengine.cpp.
#define GL_EXCLUSION_KHR 0x92A0 |
Definition at line 68 of file qopenglpaintengine.cpp.
#define GL_HARDLIGHT_KHR 0x929B |
Definition at line 65 of file qopenglpaintengine.cpp.
#define GL_KHR_blend_equation_advanced 1 |
Definition at line 57 of file qopenglpaintengine.cpp.
#define GL_KHR_blend_equation_advanced_coherent 1 |
Definition at line 72 of file qopenglpaintengine.cpp.
#define GL_LIGHTEN_KHR 0x9298 |
Definition at line 62 of file qopenglpaintengine.cpp.
#define GL_MULTIPLY_KHR 0x9294 |
Definition at line 58 of file qopenglpaintengine.cpp.
#define GL_OVERLAY_KHR 0x9296 |
Definition at line 60 of file qopenglpaintengine.cpp.
#define GL_SCREEN_KHR 0x9295 |
Definition at line 59 of file qopenglpaintengine.cpp.
#define GL_SOFTLIGHT_KHR 0x929C |
Definition at line 66 of file qopenglpaintengine.cpp.
|
inlinestatic |
Definition at line 259 of file qopenglpaintengine.cpp.
Referenced by QSGDefaultInternalImageNode::supportsWrap(), QOpenGL2PaintEngineExPrivate::updateBrushTexture(), and QSGOpaqueTextureMaterialRhiShader::updateSampledImage().
void Q_TRACE_INSTRUMENT | ( | qtopengl | ) |
Definition at line 627 of file qopenglpaintengine.cpp.
References QOpenGL2PaintEngineExPrivate::currentBrush, QOpenGLEngineShaderManager::currentProgram(), QOpenGL2PaintEngineExPrivate::funcs, QOpenGLFunctions::glDrawArrays(), GLfloat(), QSize::height(), QOpenGLEngineShaderManager::ImageTexture, QOpenGL2PaintEngineExPrivate::matrixDirty, QOpenGL2PaintEngineExPrivate::noBrush, QOpenGLEngineShaderManager::PatternColor, QOpenGL2PaintEngineExPrivate::prepareForDraw(), Q_TRACE_PARAM_REPLACE, Q_TRACE_SCOPE, QT_IMAGE_TEXTURE_UNIT, qt_premultiplyColor(), QT_TEXTURE_COORDS_ATTR, QT_VERTEX_COORDS_ATTR, setCoords(), QOpenGLShaderProgram::setUniformValue(), QOpenGL2PaintEngineExPrivate::setVertexAttribArrayEnabled(), QOpenGL2PaintEngineExPrivate::shaderManager, QOpenGL2PaintEngineExPrivate::snapToPixelGrid, QOpenGL2PaintEngineExPrivate::staticTextureCoordinateArray, QOpenGL2PaintEngineExPrivate::staticVertexCoordinateArray, QOpenGL2PaintEngineExPrivate::uploadData(), and QSize::width().
QT_BEGIN_NAMESPACE Q_GUI_EXPORT QImage qt_imageForBrush | ( | int | brushStyle, |
bool | invert | ||
) |
Definition at line 146 of file qbrush.cpp.
Definition at line 99 of file qopenglpaintengine.cpp.
References QColor::alphaF().
Referenced by QOpenGL2PaintEngineExPrivate::drawCachedGlyphs(), QOpenGL2PaintEngineExPrivate::drawPixmapFragments(), Q_TRACE_INSTRUMENT(), and QOpenGL2PaintEngineExPrivate::updateBrushUniforms().
Q_GUI_EXPORT bool qt_scaleForTransform | ( | const QTransform & | transform, |
qreal * | scale | ||
) |
Definition at line 2301 of file qtransform.cpp.
Definition at line 1510 of file qopenglpaintengine.cpp.
Referenced by QWindowsVistaStylePrivate::drawBackgroundDirectly(), QWindowsVistaStylePrivate::drawBackgroundThruNativeBuffer(), QOpenGL2PaintEngineEx::drawImage(), and QOpenGL2PaintEngineEx::drawPixmap().
|
inlinestatic |
Definition at line 615 of file qopenglpaintengine.cpp.
References rect.
Referenced by QOpenGL2PaintEngineExPrivate::composite(), and Q_TRACE_INSTRUMENT().