Qt 4.8
|
#include <qpaintengineex_opengl2_p.h>
Public Types | |
enum | StencilFillMode { OddEvenFillMode, WindingFillMode, TriStripStrokeFillMode } |
Public Functions | |
void | clearClip (uint value) |
void | composite (const QGLRect &boundingRect) |
void | drawCachedGlyphs (QFontEngineGlyphCache::Type glyphType, QStaticTextItem *staticTextItem) |
void | drawPixmapFragments (const QPainter::PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, const QSize &size, QPainter::PixmapFragmentHints hints) |
void | drawPixmapFragments (const QRectF *targetRects, const QRectF *sourceRects, int fragmentCount, const QPixmap &pixmap, const QSize &size, QPainter::PixmapFragmentHints hints) |
void | drawTexture (const QGLRect &dest, const QGLRect &src, const QSize &textureSize, bool opaque, bool pattern=false) |
void | drawVertexArrays (const float *data, int *stops, int stopCount, GLenum primitive) |
void | drawVertexArrays (QGL2PEXVertexArray &vertexArray, GLenum primitive) |
void | fill (const QVectorPath &path) |
void | fillStencilWithVertexArray (const float *data, int count, int *stops, int stopCount, const QGLRect &bounds, StencilFillMode mode) |
void | fillStencilWithVertexArray (QGL2PEXVertexArray &vertexArray, bool useWindingFill) |
GLuint | location (const QGLEngineShaderManager::Uniform uniform) |
bool | prepareForDraw (bool srcPixelsAreOpaque) |
QGL2PaintEngineExPrivate (QGL2PaintEngineEx *q_ptr) | |
void | regenerateClip () |
void | resetClipIfNeeded () |
void | resetGLState () |
void | setBrush (const QBrush &brush) |
void | setScissor (const QRect &rect) |
void | setVertexAttributePointer (unsigned int arrayIndex, const GLfloat *pointer) |
void | stroke (const QVectorPath &path, const QPen &pen) |
void | systemStateChanged () |
void | transferMode (EngineMode newMode) |
void | updateBrushTexture () |
void | updateBrushUniforms () |
void | updateClipScissorTest () |
void | updateCompositionMode () |
void | updateMatrix () |
void | updateTextureFilter (GLenum target, GLenum wrapMode, bool smoothPixmapTransform, GLuint id=-1) |
void | useSimpleShader () |
void | writeClip (const QVectorPath &path, uint value) |
~QGL2PaintEngineExPrivate () | |
Public Functions inherited from QPaintEngineExPrivate | |
bool | hasClipOperations () const |
QPaintEngineExPrivate () | |
void | replayClipOperations () |
~QPaintEngineExPrivate () | |
Public Functions inherited from QPaintEnginePrivate | |
void | drawBoxTextItem (const QPointF &p, const QTextItemInt &ti) |
QPaintEnginePrivate () | |
void | setSystemTransform (const QTransform &xform) |
void | setSystemViewport (const QRegion ®ion) |
void | transformSystemClip () |
virtual | ~QPaintEnginePrivate () |
Static Public Functions | |
static void | cleanupVectorPath (QPaintEngineEx *engine, void *data) |
static QGL2PaintEngineExPrivate * | getData (QGL2PaintEngineEx *engine) |
static QGLEngineShaderManager * | shaderManagerForEngine (QGL2PaintEngineEx *engine) |
Definition at line 169 of file qpaintengineex_opengl2_p.h.
Enumerator | |
---|---|
OddEvenFillMode | |
WindingFillMode | |
TriStripStrokeFillMode |
Definition at line 173 of file qpaintengineex_opengl2_p.h.
|
inline |
Definition at line 179 of file qpaintengineex_opengl2_p.h.
QGL2PaintEngineExPrivate::~QGL2PaintEngineExPrivate | ( | ) |
Definition at line 114 of file qpaintengineex_opengl2.cpp.
|
static |
Definition at line 705 of file qpaintengineex_opengl2.cpp.
Referenced by fill().
void QGL2PaintEngineExPrivate::clearClip | ( | uint | value | ) |
Definition at line 2317 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineExPrivate::composite | ( | const QGLRect & | boundingRect | ) |
Definition at line 1169 of file qpaintengineex_opengl2.cpp.
Referenced by fill(), fillStencilWithVertexArray(), and resetClipIfNeeded().
void QGL2PaintEngineExPrivate::drawCachedGlyphs | ( | QFontEngineGlyphCache::Type | glyphType, |
QStaticTextItem * | staticTextItem | ||
) |
Definition at line 1592 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineExPrivate::drawPixmapFragments | ( | const QPainter::PixmapFragment * | fragments, |
int | fragmentCount, | ||
const QPixmap & | pixmap, | ||
const QSize & | size, | ||
QPainter::PixmapFragmentHints | hints | ||
) |
Definition at line 1939 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineExPrivate::drawPixmapFragments | ( | const QRectF * | targetRects, |
const QRectF * | sourceRects, | ||
int | fragmentCount, | ||
const QPixmap & | pixmap, | ||
const QSize & | size, | ||
QPainter::PixmapFragmentHints | hints | ||
) |
Definition at line 2028 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineExPrivate::drawTexture | ( | const QGLRect & | dest, |
const QGLRect & | src, | ||
const QSize & | textureSize, | ||
bool | opaque, | ||
bool | pattern = false |
||
) |
Definition at line 523 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineExPrivate::drawVertexArrays | ( | const float * | data, |
int * | stops, | ||
int | stopCount, | ||
GLenum | primitive | ||
) |
Definition at line 1177 of file qpaintengineex_opengl2.cpp.
Referenced by fill(), and fillStencilWithVertexArray().
|
inline |
Definition at line 220 of file qpaintengineex_opengl2_p.h.
void QGL2PaintEngineExPrivate::fill | ( | const QVectorPath & | path | ) |
Definition at line 722 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineExPrivate::fillStencilWithVertexArray | ( | const float * | data, |
int | count, | ||
int * | stops, | ||
int | stopCount, | ||
const QGLRect & | bounds, | ||
StencilFillMode | mode | ||
) |
Definition at line 972 of file qpaintengineex_opengl2.cpp.
Referenced by fill().
|
inline |
Definition at line 229 of file qpaintengineex_opengl2_p.h.
|
inlinestatic |
Definition at line 254 of file qpaintengineex_opengl2_p.h.
|
inline |
Definition at line 239 of file qpaintengineex_opengl2_p.h.
Referenced by drawTexture(), prepareForDraw(), and updateBrushUniforms().
bool QGL2PaintEngineExPrivate::prepareForDraw | ( | bool | srcPixelsAreOpaque | ) |
Definition at line 1105 of file qpaintengineex_opengl2.cpp.
Referenced by drawTexture(), and fill().
void QGL2PaintEngineExPrivate::regenerateClip | ( | ) |
Definition at line 2500 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineExPrivate::resetClipIfNeeded | ( | ) |
Definition at line 1070 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineExPrivate::resetGLState | ( | ) |
Definition at line 609 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineExPrivate::setBrush | ( | const QBrush & | brush | ) |
Definition at line 162 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineExPrivate::setScissor | ( | const QRect & | rect | ) |
Definition at line 2292 of file qpaintengineex_opengl2.cpp.
Referenced by fillStencilWithVertexArray().
|
inline |
Definition at line 327 of file qpaintengineex_opengl2_p.h.
Referenced by composite(), drawVertexArrays(), fill(), fillStencilWithVertexArray(), QGLTextureGlyphCache::resizeTextureData(), and transferMode().
|
inlinestatic |
Definition at line 253 of file qpaintengineex_opengl2_p.h.
Referenced by QGLCustomShaderStage::removeFromPainter(), and QGLCustomShaderStage::setOnPainter().
void QGL2PaintEngineExPrivate::stroke | ( | const QVectorPath & | path, |
const QPen & | pen | ||
) |
Definition at line 1241 of file qpaintengineex_opengl2.cpp.
|
virtual |
Reimplemented from QPaintEnginePrivate.
Definition at line 2506 of file qpaintengineex_opengl2.cpp.
void QGL2PaintEngineExPrivate::transferMode | ( | EngineMode | newMode | ) |
Definition at line 650 of file qpaintengineex_opengl2.cpp.
Referenced by fill(), and QGLTextureGlyphCache::resizeTextureData().
void QGL2PaintEngineExPrivate::updateBrushTexture | ( | ) |
Definition at line 197 of file qpaintengineex_opengl2.cpp.
Referenced by prepareForDraw().
void QGL2PaintEngineExPrivate::updateBrushUniforms | ( | ) |
Definition at line 263 of file qpaintengineex_opengl2.cpp.
Referenced by prepareForDraw().
void QGL2PaintEngineExPrivate::updateClipScissorTest | ( | ) |
Definition at line 2252 of file qpaintengineex_opengl2.cpp.
Referenced by fill(), fillStencilWithVertexArray(), and QGLTextureGlyphCache::resizeTextureData().
void QGL2PaintEngineExPrivate::updateCompositionMode | ( | ) |
Definition at line 458 of file qpaintengineex_opengl2.cpp.
Referenced by prepareForDraw().
void QGL2PaintEngineExPrivate::updateMatrix | ( | ) |
Definition at line 387 of file qpaintengineex_opengl2.cpp.
Referenced by fill(), prepareForDraw(), and useSimpleShader().
void QGL2PaintEngineExPrivate::updateTextureFilter | ( | GLenum | target, |
GLenum | wrapMode, | ||
bool | smoothPixmapTransform, | ||
GLuint | id = -1 |
||
) |
Definition at line 131 of file qpaintengineex_opengl2.cpp.
Referenced by updateBrushTexture().
|
inline |
Definition at line 189 of file qpaintengineex_opengl2.cpp.
Referenced by fillStencilWithVertexArray(), and resetClipIfNeeded().
void QGL2PaintEngineExPrivate::writeClip | ( | const QVectorPath & | path, |
uint | value | ||
) |
Definition at line 2329 of file qpaintengineex_opengl2.cpp.
QScopedPointer<QPixmapFilter> QGL2PaintEngineExPrivate::blurFilter |
Definition at line 314 of file qpaintengineex_opengl2_p.h.
bool QGL2PaintEngineExPrivate::brushTextureDirty |
Definition at line 270 of file qpaintengineex_opengl2_p.h.
Referenced by prepareForDraw(), setBrush(), and updateBrushTexture().
bool QGL2PaintEngineExPrivate::brushUniformsDirty |
Definition at line 271 of file qpaintengineex_opengl2_p.h.
Referenced by prepareForDraw(), setBrush(), and updateBrushUniforms().
QScopedPointer<QPixmapFilter> QGL2PaintEngineExPrivate::colorizeFilter |
Definition at line 313 of file qpaintengineex_opengl2_p.h.
bool QGL2PaintEngineExPrivate::compositionModeDirty |
Definition at line 269 of file qpaintengineex_opengl2_p.h.
Referenced by prepareForDraw(), and updateCompositionMode().
QScopedPointer<QPixmapFilter> QGL2PaintEngineExPrivate::convolutionFilter |
Definition at line 312 of file qpaintengineex_opengl2_p.h.
QGLContext* QGL2PaintEngineExPrivate::ctx |
Definition at line 262 of file qpaintengineex_opengl2_p.h.
Referenced by QGL2PaintEngineEx::beginNativePainting(), resetGLState(), and updateBrushTexture().
QBrush QGL2PaintEngineExPrivate::currentBrush |
Definition at line 281 of file qpaintengineex_opengl2_p.h.
Referenced by drawTexture(), fill(), prepareForDraw(), setBrush(), updateBrushTexture(), and updateBrushUniforms().
QPixmap QGL2PaintEngineExPrivate::currentBrushPixmap |
Definition at line 284 of file qpaintengineex_opengl2_p.h.
Referenced by setBrush(), and updateBrushTexture().
QRect QGL2PaintEngineExPrivate::currentScissorBounds |
Definition at line 278 of file qpaintengineex_opengl2_p.h.
Referenced by fillStencilWithVertexArray().
QDashedStrokeProcessor QGL2PaintEngineExPrivate::dasher |
Definition at line 310 of file qpaintengineex_opengl2_p.h.
Referenced by updateMatrix().
GLfloat QGL2PaintEngineExPrivate::depthRange[2] |
Definition at line 305 of file qpaintengineex_opengl2_p.h.
QGLPaintDevice* QGL2PaintEngineExPrivate::device |
Definition at line 260 of file qpaintengineex_opengl2_p.h.
Referenced by fill(), updateBrushUniforms(), and updateMatrix().
QRegion QGL2PaintEngineExPrivate::dirtyStencilRegion |
Definition at line 277 of file qpaintengineex_opengl2_p.h.
Referenced by fillStencilWithVertexArray().
QScopedPointer<QPixmapFilter> QGL2PaintEngineExPrivate::dropShadowFilter |
Definition at line 315 of file qpaintengineex_opengl2_p.h.
QVector<GLushort> QGL2PaintEngineExPrivate::elementIndices |
Definition at line 288 of file qpaintengineex_opengl2_p.h.
GLuint QGL2PaintEngineExPrivate::elementIndicesVBOId |
Definition at line 289 of file qpaintengineex_opengl2_p.h.
Referenced by ~QGL2PaintEngineExPrivate().
QFontEngineGlyphCache::Type QGL2PaintEngineExPrivate::glyphCacheType |
Definition at line 265 of file qpaintengineex_opengl2_p.h.
bool QGL2PaintEngineExPrivate::hasCompatibilityExtension |
Definition at line 323 of file qpaintengineex_opengl2_p.h.
int QGL2PaintEngineExPrivate::height |
Definition at line 261 of file qpaintengineex_opengl2_p.h.
Referenced by resetClipIfNeeded(), QGLTextureGlyphCache::resizeTextureData(), updateBrushUniforms(), and updateMatrix().
bool QGL2PaintEngineExPrivate::imageDrawingMode |
Definition at line 264 of file qpaintengineex_opengl2_p.h.
Referenced by prepareForDraw(), and transferMode().
GLfloat QGL2PaintEngineExPrivate::inverseScale |
Definition at line 297 of file qpaintengineex_opengl2_p.h.
Referenced by fill(), and updateMatrix().
GLuint QGL2PaintEngineExPrivate::lastMaskTextureUsed |
Definition at line 300 of file qpaintengineex_opengl2_p.h.
GLuint QGL2PaintEngineExPrivate::lastTextureUsed |
Definition at line 299 of file qpaintengineex_opengl2_p.h.
Referenced by transferMode(), and updateTextureFilter().
bool QGL2PaintEngineExPrivate::matrixDirty |
Definition at line 268 of file qpaintengineex_opengl2_p.h.
Referenced by drawTexture(), fill(), prepareForDraw(), updateMatrix(), and useSimpleShader().
bool QGL2PaintEngineExPrivate::matrixUniformDirty |
Definition at line 273 of file qpaintengineex_opengl2_p.h.
Referenced by prepareForDraw(), and updateMatrix().
uint QGL2PaintEngineExPrivate::maxClip |
Definition at line 279 of file qpaintengineex_opengl2_p.h.
Referenced by resetClipIfNeeded().
EngineMode QGL2PaintEngineExPrivate::mode |
Definition at line 263 of file qpaintengineex_opengl2_p.h.
Referenced by prepareForDraw(), and transferMode().
bool QGL2PaintEngineExPrivate::multisamplingAlwaysEnabled |
Definition at line 303 of file qpaintengineex_opengl2_p.h.
bool QGL2PaintEngineExPrivate::nativePaintingActive |
Definition at line 295 of file qpaintengineex_opengl2_p.h.
bool QGL2PaintEngineExPrivate::needsSync |
Definition at line 302 of file qpaintengineex_opengl2_p.h.
const QBrush QGL2PaintEngineExPrivate::noBrush |
Definition at line 282 of file qpaintengineex_opengl2_p.h.
Referenced by drawTexture().
QDataBuffer<GLfloat> QGL2PaintEngineExPrivate::opacityArray |
Definition at line 290 of file qpaintengineex_opengl2_p.h.
Referenced by transferMode().
bool QGL2PaintEngineExPrivate::opacityUniformDirty |
Definition at line 272 of file qpaintengineex_opengl2_p.h.
Referenced by prepareForDraw().
QSet<QVectorPath::CacheEntry *> QGL2PaintEngineExPrivate::pathCaches |
Definition at line 317 of file qpaintengineex_opengl2_p.h.
Referenced by ~QGL2PaintEngineExPrivate().
GLfloat QGL2PaintEngineExPrivate::pmvMatrix[3][3] |
Definition at line 296 of file qpaintengineex_opengl2_p.h.
Referenced by prepareForDraw(), and updateMatrix().
QGL2PaintEngineEx* QGL2PaintEngineExPrivate::q |
Definition at line 258 of file qpaintengineex_opengl2_p.h.
Referenced by drawTexture(), fill(), fillStencilWithVertexArray(), prepareForDraw(), resetClipIfNeeded(), updateBrushTexture(), updateBrushUniforms(), updateCompositionMode(), and updateMatrix().
QGLEngineShaderManager* QGL2PaintEngineExPrivate::shaderManager |
Definition at line 259 of file qpaintengineex_opengl2_p.h.
Referenced by drawTexture(), prepareForDraw(), QGLTextureGlyphCache::resizeTextureData(), setBrush(), transferMode(), updateBrushUniforms(), useSimpleShader(), and ~QGL2PaintEngineExPrivate().
bool QGL2PaintEngineExPrivate::snapToPixelGrid |
Definition at line 294 of file qpaintengineex_opengl2_p.h.
Referenced by drawTexture(), fill(), and updateMatrix().
GLfloat QGL2PaintEngineExPrivate::staticTextureCoordinateArray[8] |
Definition at line 292 of file qpaintengineex_opengl2_p.h.
Referenced by drawTexture(), and transferMode().
GLfloat QGL2PaintEngineExPrivate::staticVertexCoordinateArray[8] |
Definition at line 291 of file qpaintengineex_opengl2_p.h.
Referenced by composite(), drawTexture(), and transferMode().
bool QGL2PaintEngineExPrivate::stencilClean |
Definition at line 275 of file qpaintengineex_opengl2_p.h.
Referenced by fillStencilWithVertexArray().
QTriangulatingStroker QGL2PaintEngineExPrivate::stroker |
Definition at line 309 of file qpaintengineex_opengl2_p.h.
Referenced by updateMatrix().
QGL2PEXVertexArray QGL2PaintEngineExPrivate::textureCoordinateArray |
Definition at line 287 of file qpaintengineex_opengl2_p.h.
Referenced by transferMode().
float QGL2PaintEngineExPrivate::textureInvertedY |
Definition at line 307 of file qpaintengineex_opengl2_p.h.
Referenced by updateBrushTexture(), and updateBrushUniforms().
QVector<GLuint> QGL2PaintEngineExPrivate::unusedIBOSToClean |
Definition at line 319 of file qpaintengineex_opengl2_p.h.
QVector<GLuint> QGL2PaintEngineExPrivate::unusedVBOSToClean |
Definition at line 318 of file qpaintengineex_opengl2_p.h.
bool QGL2PaintEngineExPrivate::useSystemClip |
Definition at line 276 of file qpaintengineex_opengl2_p.h.
const GLfloat* QGL2PaintEngineExPrivate::vertexAttribPointers[3] |
Definition at line 321 of file qpaintengineex_opengl2_p.h.
QGL2PEXVertexArray QGL2PaintEngineExPrivate::vertexCoordinateArray |
Definition at line 286 of file qpaintengineex_opengl2_p.h.
Referenced by fill(), and transferMode().
int QGL2PaintEngineExPrivate::width |
Definition at line 261 of file qpaintengineex_opengl2_p.h.
Referenced by resetClipIfNeeded(), QGLTextureGlyphCache::resizeTextureData(), updateBrushUniforms(), and updateMatrix().