![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qopenglpaintengine_p.h>
Public Types | |
enum | StencilFillMode { OddEvenFillMode , WindingFillMode , TriStripStrokeFillMode } |
enum | TextureUpdateMode { UpdateIfNeeded , ForceUpdate } |
Static Public Member Functions | |
static QOpenGLEngineShaderManager * | shaderManagerForEngine (QOpenGL2PaintEngineEx *engine) |
static QOpenGL2PaintEngineExPrivate * | getData (QOpenGL2PaintEngineEx *engine) |
static void | cleanupVectorPath (QPaintEngineEx *engine, void *data) |
Static Public Member Functions inherited from QPaintEnginePrivate | |
static QPaintEnginePrivate * | get (QPaintEngine *paintEngine) |
Definition at line 139 of file qopenglpaintengine_p.h.
Enumerator | |
---|---|
OddEvenFillMode | |
WindingFillMode | |
TriStripStrokeFillMode |
Definition at line 143 of file qopenglpaintengine_p.h.
Enumerator | |
---|---|
UpdateIfNeeded | |
ForceUpdate |
Definition at line 174 of file qopenglpaintengine_p.h.
|
inline |
Definition at line 149 of file qopenglpaintengine_p.h.
References QOpenGL2PaintEngineExPrivate(), height, nativePaintingActive, snapToPixelGrid, useSystemClip, and width.
Referenced by QOpenGL2PaintEngineExPrivate().
QOpenGL2PaintEngineExPrivate::~QOpenGL2PaintEngineExPrivate | ( | ) |
Definition at line 83 of file qopenglpaintengine.cpp.
Definition at line 184 of file qopenglpaintengine.cpp.
GLuint QOpenGL2PaintEngineExPrivate::bindTexture | ( | const GLuint & | textureId, |
bool * | newTextureCreated ) |
Definition at line 199 of file qopenglpaintengine.cpp.
GLuint QOpenGL2PaintEngineExPrivate::bindTexture | ( | const GLuint & | textureId, |
bool * | newTextureCreated ) |
Definition at line 199 of file qopenglpaintengine.cpp.
GLuint QOpenGL2PaintEngineExPrivate::bindTexture | ( | const ImageWithBindOptions & | imageWithOptions, |
bool * | newTextureCreated ) |
Definition at line 249 of file qopenglpaintengine.cpp.
GLuint QOpenGL2PaintEngineExPrivate::bindTexture | ( | const ImageWithBindOptions & | imageWithOptions, |
bool * | newTextureCreated ) |
Definition at line 249 of file qopenglpaintengine.cpp.
GLuint QOpenGL2PaintEngineExPrivate::bindTexture | ( | const QGradient & | gradient, |
bool * | newTextureCreated ) |
Definition at line 229 of file qopenglpaintengine.cpp.
GLuint QOpenGL2PaintEngineExPrivate::bindTexture | ( | const QGradient & | gradient, |
bool * | newTextureCreated ) |
Definition at line 229 of file qopenglpaintengine.cpp.
GLuint QOpenGL2PaintEngineExPrivate::bindTexture | ( | const QImage & | image, |
bool * | newTextureCreated ) |
Definition at line 211 of file qopenglpaintengine.cpp.
GLuint QOpenGL2PaintEngineExPrivate::bindTexture | ( | const QImage & | image, |
bool * | newTextureCreated ) |
Definition at line 211 of file qopenglpaintengine.cpp.
GLuint QOpenGL2PaintEngineExPrivate::bindTexture | ( | const QPixmap & | pixmap, |
bool * | newTextureCreated ) |
Definition at line 220 of file qopenglpaintengine.cpp.
GLuint QOpenGL2PaintEngineExPrivate::bindTexture | ( | const QPixmap & | pixmap, |
bool * | newTextureCreated ) |
Definition at line 220 of file qopenglpaintengine.cpp.
GLuint QOpenGL2PaintEngineExPrivate::bindTexture | ( | const T & | texture, |
bool * | newTextureCreated ) |
|
static |
Definition at line 820 of file qopenglpaintengine.cpp.
Definition at line 2417 of file qopenglpaintengine.cpp.
void QOpenGL2PaintEngineExPrivate::composite | ( | const QOpenGLRect & | boundingRect | ) |
Definition at line 1305 of file qopenglpaintengine.cpp.
QT_WARNING_PUSH void QOpenGL2PaintEngineExPrivate::drawCachedGlyphs | ( | QFontEngine::GlyphFormat | glyphFormat, |
QStaticTextItem * | staticTextItem ) |
Definition at line 1760 of file qopenglpaintengine.cpp.
References brushTextureDirty, compositionModeDirty, ForceUpdate, matrixDirty, opacityUniformDirty, snapToPixelGrid, transferMode(), and UpdateIfNeeded.
void QOpenGL2PaintEngineExPrivate::drawPixmapFragments | ( | const QPainter::PixmapFragment * | fragments, |
int | fragmentCount, | ||
const QPixmap & | pixmap, | ||
QPainter::PixmapFragmentHints | hints ) |
Definition at line 2098 of file qopenglpaintengine.cpp.
References matrixDirty, snapToPixelGrid, and transferMode().
void QOpenGL2PaintEngineExPrivate::drawTexture | ( | const QOpenGLRect & | dest, |
const QOpenGLRect & | src, | ||
const QSize & | textureSize, | ||
bool | opaque, | ||
bool | pattern = false ) |
void QOpenGL2PaintEngineExPrivate::drawVertexArrays | ( | const float * | data, |
int * | stops, | ||
int | stopCount, | ||
GLenum | primitive ) |
Definition at line 1314 of file qopenglpaintengine.cpp.
|
inline |
Definition at line 198 of file qopenglpaintengine_p.h.
void QOpenGL2PaintEngineExPrivate::fill | ( | const QVectorPath & | path | ) |
Definition at line 837 of file qopenglpaintengine.cpp.
References brushUniformsDirty, matrixDirty, snapToPixelGrid, transferMode(), updateClipScissorTest(), and updateMatrix().
void QOpenGL2PaintEngineExPrivate::fillStencilWithVertexArray | ( | const float * | data, |
int | count, | ||
int * | stops, | ||
int | stopCount, | ||
const QOpenGLRect & | bounds, | ||
StencilFillMode | mode ) |
Definition at line 1089 of file qopenglpaintengine.cpp.
References stencilClean, updateClipScissorTest(), and useSimpleShader().
|
inline |
Definition at line 207 of file qopenglpaintengine_p.h.
|
inlinestatic |
Definition at line 235 of file qopenglpaintengine_p.h.
|
inline |
Definition at line 218 of file qopenglpaintengine_p.h.
bool QOpenGL2PaintEngineExPrivate::prepareForCachedGlyphDraw | ( | const QFontEngineGlyphCache & | cache | ) |
Definition at line 1227 of file qopenglpaintengine.cpp.
References prepareForDraw().
bool QOpenGL2PaintEngineExPrivate::prepareForDraw | ( | bool | srcPixelsAreOpaque | ) |
Definition at line 1241 of file qopenglpaintengine.cpp.
References brushTextureDirty, brushUniformsDirty, compositionModeDirty, matrixDirty, matrixUniformDirty, mode, opacityUniformDirty, updateBrushTexture(), updateBrushUniforms(), updateCompositionMode(), and updateMatrix().
Referenced by prepareForCachedGlyphDraw(), and stroke().
void QOpenGL2PaintEngineExPrivate::regenerateClip | ( | ) |
Definition at line 2565 of file qopenglpaintengine.cpp.
References systemStateChanged().
void QOpenGL2PaintEngineExPrivate::resetClipIfNeeded | ( | ) |
Definition at line 1192 of file qopenglpaintengine.cpp.
References useSimpleShader().
void QOpenGL2PaintEngineExPrivate::resetGLState | ( | ) |
Definition at line 726 of file qopenglpaintengine.cpp.
Definition at line 110 of file qopenglpaintengine.cpp.
References brushTextureDirty, and brushUniformsDirty.
Definition at line 2392 of file qopenglpaintengine.cpp.
References height.
void QOpenGL2PaintEngineExPrivate::setVertexAttribArrayEnabled | ( | int | arrayIndex, |
bool | enabled = true ) |
Definition at line 2706 of file qopenglpaintengine.cpp.
References vertexAttributeArraysEnabledState.
|
inlinestatic |
Definition at line 234 of file qopenglpaintengine_p.h.
void QOpenGL2PaintEngineExPrivate::stroke | ( | const QVectorPath & | path, |
const QPen & | pen ) |
Definition at line 1375 of file qopenglpaintengine.cpp.
References matrixDirty, prepareForDraw(), snapToPixelGrid, transferMode(), updateClipScissorTest(), and updateMatrix().
void QOpenGL2PaintEngineExPrivate::syncGlState | ( | ) |
Definition at line 2719 of file qopenglpaintengine.cpp.
|
overridevirtual |
Reimplemented from QPaintEnginePrivate.
Definition at line 2571 of file qopenglpaintengine.cpp.
References updateClipScissorTest(), and useSystemClip.
Referenced by regenerateClip().
void QOpenGL2PaintEngineExPrivate::transferMode | ( | EngineMode | newMode | ) |
Definition at line 773 of file qopenglpaintengine.cpp.
Referenced by drawCachedGlyphs(), drawPixmapFragments(), fill(), stroke(), and writeClip().
void QOpenGL2PaintEngineExPrivate::updateBrushTexture | ( | ) |
Definition at line 265 of file qopenglpaintengine.cpp.
References brushTextureDirty, and ForceUpdate.
Referenced by prepareForDraw().
void QOpenGL2PaintEngineExPrivate::updateBrushUniforms | ( | ) |
Definition at line 316 of file qopenglpaintengine.cpp.
References brushUniformsDirty, height, and width.
Referenced by prepareForDraw().
void QOpenGL2PaintEngineExPrivate::updateClipScissorTest | ( | ) |
Definition at line 2350 of file qopenglpaintengine.cpp.
References height, useSystemClip, and width.
Referenced by fill(), fillStencilWithVertexArray(), stroke(), and systemStateChanged().
void QOpenGL2PaintEngineExPrivate::updateCompositionMode | ( | ) |
Definition at line 514 of file qopenglpaintengine.cpp.
References compositionModeDirty.
Referenced by prepareForDraw().
void QOpenGL2PaintEngineExPrivate::updateMatrix | ( | ) |
Definition at line 443 of file qopenglpaintengine.cpp.
References height, matrixDirty, matrixUniformDirty, and width.
Referenced by fill(), prepareForDraw(), stroke(), useSimpleShader(), and writeClip().
void QOpenGL2PaintEngineExPrivate::updateTexture | ( | GLenum | textureUnit, |
const T & | texture, | ||
GLenum | wrapMode, | ||
GLenum | filterMode, | ||
TextureUpdateMode | updateMode = UpdateIfNeeded ) |
Definition at line 160 of file qopenglpaintengine.cpp.
|
inline |
Definition at line 304 of file qopenglpaintengine_p.h.
|
inline |
Definition at line 326 of file qopenglpaintengine_p.h.
|
inline |
Definition at line 137 of file qopenglpaintengine.cpp.
References matrixDirty, and updateMatrix().
Referenced by fillStencilWithVertexArray(), resetClipIfNeeded(), and writeClip().
void QOpenGL2PaintEngineExPrivate::writeClip | ( | const QVectorPath & | path, |
uint | value ) |
Definition at line 2429 of file qopenglpaintengine.cpp.
References matrixDirty, snapToPixelGrid, stencilClean, transferMode(), updateMatrix(), and useSimpleShader().
bool QOpenGL2PaintEngineExPrivate::brushTextureDirty |
Definition at line 253 of file qopenglpaintengine_p.h.
Referenced by drawCachedGlyphs(), prepareForDraw(), setBrush(), and updateBrushTexture().
bool QOpenGL2PaintEngineExPrivate::brushUniformsDirty |
Definition at line 254 of file qopenglpaintengine_p.h.
Referenced by fill(), prepareForDraw(), setBrush(), and updateBrushUniforms().
bool QOpenGL2PaintEngineExPrivate::compositionModeDirty |
Definition at line 252 of file qopenglpaintengine_p.h.
Referenced by drawCachedGlyphs(), prepareForDraw(), and updateCompositionMode().
QPointer<QOpenGLContext> QOpenGL2PaintEngineExPrivate::ctx |
Definition at line 244 of file qopenglpaintengine_p.h.
QBrush QOpenGL2PaintEngineExPrivate::currentBrush |
Definition at line 264 of file qopenglpaintengine_p.h.
QImage QOpenGL2PaintEngineExPrivate::currentBrushImage |
Definition at line 267 of file qopenglpaintengine_p.h.
QRect QOpenGL2PaintEngineExPrivate::currentScissorBounds |
Definition at line 261 of file qopenglpaintengine_p.h.
QDashedStrokeProcessor QOpenGL2PaintEngineExPrivate::dasher |
Definition at line 295 of file qopenglpaintengine_p.h.
QOpenGLPaintDevice* QOpenGL2PaintEngineExPrivate::device |
Definition at line 242 of file qopenglpaintengine_p.h.
QRegion QOpenGL2PaintEngineExPrivate::dirtyStencilRegion |
Definition at line 260 of file qopenglpaintengine_p.h.
Definition at line 271 of file qopenglpaintengine_p.h.
GLuint QOpenGL2PaintEngineExPrivate::elementIndicesVBOId |
Definition at line 272 of file qopenglpaintengine_p.h.
QOpenGLExtensions QOpenGL2PaintEngineExPrivate::funcs |
Definition at line 238 of file qopenglpaintengine_p.h.
QFontEngine::GlyphFormat QOpenGL2PaintEngineExPrivate::glyphCacheFormat |
Definition at line 246 of file qopenglpaintengine_p.h.
int QOpenGL2PaintEngineExPrivate::height |
Definition at line 243 of file qopenglpaintengine_p.h.
Referenced by QOpenGL2PaintEngineExPrivate(), setScissor(), updateBrushUniforms(), updateClipScissorTest(), and updateMatrix().
QOpenGLBuffer QOpenGL2PaintEngineExPrivate::indexBuffer |
Definition at line 289 of file qopenglpaintengine_p.h.
GLfloat QOpenGL2PaintEngineExPrivate::inverseScale |
Definition at line 280 of file qopenglpaintengine_p.h.
GLenum QOpenGL2PaintEngineExPrivate::lastTextureUnitUsed |
Definition at line 282 of file qopenglpaintengine_p.h.
GLuint QOpenGL2PaintEngineExPrivate::lastTextureUsed |
Definition at line 283 of file qopenglpaintengine_p.h.
bool QOpenGL2PaintEngineExPrivate::matrixDirty |
Definition at line 251 of file qopenglpaintengine_p.h.
Referenced by drawCachedGlyphs(), drawPixmapFragments(), fill(), prepareForDraw(), stroke(), updateMatrix(), useSimpleShader(), and writeClip().
bool QOpenGL2PaintEngineExPrivate::matrixUniformDirty |
Definition at line 256 of file qopenglpaintengine_p.h.
Referenced by prepareForDraw(), and updateMatrix().
uint QOpenGL2PaintEngineExPrivate::maxClip |
Definition at line 262 of file qopenglpaintengine_p.h.
EngineMode QOpenGL2PaintEngineExPrivate::mode |
Definition at line 245 of file qopenglpaintengine_p.h.
Referenced by prepareForDraw().
bool QOpenGL2PaintEngineExPrivate::multisamplingAlwaysEnabled |
Definition at line 292 of file qopenglpaintengine_p.h.
bool QOpenGL2PaintEngineExPrivate::nativePaintingActive |
Definition at line 278 of file qopenglpaintengine_p.h.
Referenced by QOpenGL2PaintEngineExPrivate().
bool QOpenGL2PaintEngineExPrivate::needsSync |
Definition at line 291 of file qopenglpaintengine_p.h.
const QBrush QOpenGL2PaintEngineExPrivate::noBrush |
Definition at line 265 of file qopenglpaintengine_p.h.
QDataBuffer<GLfloat> QOpenGL2PaintEngineExPrivate::opacityArray |
Definition at line 273 of file qopenglpaintengine_p.h.
QOpenGLBuffer QOpenGL2PaintEngineExPrivate::opacityBuffer |
Definition at line 288 of file qopenglpaintengine_p.h.
bool QOpenGL2PaintEngineExPrivate::opacityUniformDirty |
Definition at line 255 of file qopenglpaintengine_p.h.
Referenced by drawCachedGlyphs(), and prepareForDraw().
GLfloat QOpenGL2PaintEngineExPrivate::pmvMatrix[3][3] |
Definition at line 279 of file qopenglpaintengine_p.h.
QOpenGL2PaintEngineEx* QOpenGL2PaintEngineExPrivate::q |
Definition at line 240 of file qopenglpaintengine_p.h.
QOpenGLEngineShaderManager* QOpenGL2PaintEngineExPrivate::shaderManager |
Definition at line 241 of file qopenglpaintengine_p.h.
bool QOpenGL2PaintEngineExPrivate::snapToPixelGrid |
Definition at line 277 of file qopenglpaintengine_p.h.
Referenced by QOpenGL2PaintEngineExPrivate(), drawCachedGlyphs(), drawPixmapFragments(), fill(), stroke(), and writeClip().
GLfloat QOpenGL2PaintEngineExPrivate::staticTextureCoordinateArray[8] |
Definition at line 275 of file qopenglpaintengine_p.h.
GLfloat QOpenGL2PaintEngineExPrivate::staticVertexCoordinateArray[8] |
Definition at line 274 of file qopenglpaintengine_p.h.
bool QOpenGL2PaintEngineExPrivate::stencilClean |
Definition at line 258 of file qopenglpaintengine_p.h.
Referenced by fillStencilWithVertexArray(), and writeClip().
QTriangulatingStroker QOpenGL2PaintEngineExPrivate::stroker |
Definition at line 294 of file qopenglpaintengine_p.h.
QOpenGLBuffer QOpenGL2PaintEngineExPrivate::texCoordBuffer |
Definition at line 287 of file qopenglpaintengine_p.h.
QOpenGL2PEXVertexArray QOpenGL2PaintEngineExPrivate::textureCoordinateArray |
Definition at line 270 of file qopenglpaintengine_p.h.
QVarLengthArray<GLuint, 8> QOpenGL2PaintEngineExPrivate::unusedIBOSToClean |
Definition at line 298 of file qopenglpaintengine_p.h.
QVarLengthArray<GLuint, 8> QOpenGL2PaintEngineExPrivate::unusedVBOSToClean |
Definition at line 297 of file qopenglpaintengine_p.h.
bool QOpenGL2PaintEngineExPrivate::useSystemClip |
Definition at line 259 of file qopenglpaintengine_p.h.
Referenced by QOpenGL2PaintEngineExPrivate(), systemStateChanged(), and updateClipScissorTest().
QOpenGLVertexArrayObject QOpenGL2PaintEngineExPrivate::vao |
Definition at line 285 of file qopenglpaintengine_p.h.
const GLfloat* QOpenGL2PaintEngineExPrivate::vertexAttribPointers[3] |
Definition at line 300 of file qopenglpaintengine_p.h.
bool QOpenGL2PaintEngineExPrivate::vertexAttributeArraysEnabledState[QT_GL_VERTEX_ARRAY_TRACKED_COUNT] |
Definition at line 248 of file qopenglpaintengine_p.h.
Referenced by setVertexAttribArrayEnabled().
QOpenGLBuffer QOpenGL2PaintEngineExPrivate::vertexBuffer |
Definition at line 286 of file qopenglpaintengine_p.h.
QOpenGL2PEXVertexArray QOpenGL2PaintEngineExPrivate::vertexCoordinateArray |
Definition at line 269 of file qopenglpaintengine_p.h.
int QOpenGL2PaintEngineExPrivate::width |
Definition at line 243 of file qopenglpaintengine_p.h.
Referenced by QOpenGL2PaintEngineExPrivate(), updateBrushUniforms(), updateClipScissorTest(), and updateMatrix().