![]() |
Qt 4.8
|
#include <qdebug.h>#include <private/qfontengine_p.h>#include <qmath.h>#include <private/qmath_p.h>#include <private/qdrawhelper_p.h>#include <private/qpaintengine_p.h>#include "qapplication.h"#include "qbrush.h"#include "qgl.h"#include <private/qgl_p.h>#include <private/qglpaintdevice_p.h>#include <private/qpainter_p.h>#include "qmap.h"#include <private/qpaintengine_opengl_p.h>#include <private/qdatabuffer_p.h>#include "qpen.h"#include "qvarlengtharray.h"#include <private/qglpixelbuffer_p.h>#include <private/qbezier_p.h>#include <qglframebufferobject.h>#include <private/qstatictext_p.h>#include "private/qtessellator_p.h"#include "util/fragmentprograms_p.h"#include "private/qglwindowsurface_qws_p.h"#include "qwsmanager_qws.h"#include "private/qwsmanager_p.h"#include <stdlib.h>#include "qpaintengine_opengl_p.h"#include "qpaintengine_opengl.moc"Go to the source code of this file.
Classes | |
| struct | GLProgram |
| struct | QDrawQueueItem |
| class | QGLEllipseMaskGenerator |
| struct | QGLFontTexture |
| class | QGLGlyphCache |
| struct | QGLGlyphCoord |
| class | QGLGradientCache |
| struct | QGLGradientCache::CacheInfo |
| class | QGLLineMaskGenerator |
| class | QGLMaskGenerator |
| class | QGLMaskTextureCache |
| struct | QGLMaskTextureCache::CacheInfo |
| struct | QGLMaskTextureCache::CacheLocation |
| struct | QGLMaskTextureCache::QuadTreeNode |
| class | QGLOffscreen |
| class | QGLPathMaskGenerator |
| class | QGLPrivateCleanup |
| class | QGLProgramCache |
| class | QGLRectMaskGenerator |
| class | QGLStrokeCache |
| struct | QGLStrokeCache::CacheInfo |
| struct | QGLTrapezoid |
| class | QGLTrapezoidMaskGenerator |
| class | QOpenGLCoordinateOffset |
| class | QOpenGLImmediateModeTessellator |
| class | QOpenGLPaintEnginePrivate |
| class | QOpenGLTessellator |
| class | QOpenGLTrapezoidToArrayTessellator |
| struct | QT_PointF |
Macros | |
| #define | DEBUG_ONCE if (0) |
| #define | DEBUG_ONCE_STR(str) ; |
| #define | DEBUG_OVERRIDE(state) ; |
| #define | DISABLE_DEBUG_ONCE |
| #define | FloatToQuint64(i) (quint64)((i) * 32) |
| #define | QGL_FUNC_CONTEXT QGLContext *ctx = const_cast<QGLContext *>(device->context()); |
| #define | QREAL_MAX 9e100 |
| #define | QREAL_MIN -9e100 |
Typedefs | |
| typedef QHash< const QGLContext *, QGLFontGlyphHash * > | QGLContextHash |
| typedef QHash< QFontEngine *, QGLGlyphHash * > | QGLFontGlyphHash |
| typedef QHash< quint64, QGLFontTexture * > | QGLFontTexHash |
| typedef QHash< glyph_t, QGLGlyphCoord * > | QGLGlyphHash |
| typedef QMultiHash< const QGLContext *, GLProgram > | QGLProgramHash |
Functions | |
| static void | addQuadAsTriangle (GLfloat *quad, GLfloat *triangle) |
| static void | drawTrapezoid (const QGLTrapezoid &trap, const qreal offscreenHeight, QGLContext *ctx) |
| static QPainterPath | ellipseRectToPath (const QRectF &rect) |
| static uint | endianColor (uint c) |
| template<typename T > | |
| static bool | isRect (const T *pts, int elementCount) |
| static bool | needsEmulation (Qt::BrushStyle style) |
| static bool | pathClosed (const QPainterPath &path) |
| void | qgl_cleanup_glyph_cache (QGLContext *ctx) |
| template<typename T > | |
| static const T | qSubImage (const T &image, const QRectF &src, QRectF *srcNew) |
| void | qt_add_rect_to_array (const QRectF &r, GLfloat *array) |
| void | qt_add_texcoords_to_array (qreal x1, qreal y1, qreal x2, qreal y2, GLfloat *array) |
| static void | qt_delete_glyph_hash (QGLGlyphHash *hash) |
| static void | qt_glColor4ubv (unsigned char *col) |
| Q_GUI_EXPORT QImage | qt_imageForBrush (int brushStyle, bool invert) |
| Q_GUI_EXPORT bool | qt_isExtendedRadialGradient (const QBrush &brush) |
| int | qt_next_power_of_two (int v) |
| Q_GUI_EXPORT QPainterPath | qt_painterPathFromVectorPath (const QVectorPath &path) |
| Q_GUI_EXPORT bool | qt_scaleForTransform (const QTransform &transform, qreal *scale) |
| static const QRectF | scaleRect (const QRectF &r, qreal sx, qreal sy) |
| static QPainterPath | strokeForPath (const QPainterPath &path, const QPen &cpen) |
| static void | updateTextureFilter (GLenum target, GLenum wrapMode, bool smoothPixmapTransform) |
Variables | |
| static bool | qt_nvidiaFboNeedsFinish = false |
| static const int | x_margin = 1 |
| static const int | y_margin = 0 |
| #define DEBUG_ONCE if (0) |
Definition at line 99 of file qpaintengine_opengl.cpp.
Referenced by QGLOffscreen::bind(), QGLMaskTextureCache::clearCache(), QOpenGLPaintEnginePrivate::composite(), QOpenGLPaintEnginePrivate::copyDrawable(), QOpenGLPaintEngine::drawPath(), QOpenGLPaintEnginePrivate::fillPolygon_dev(), QOpenGLPaintEnginePrivate::fillVertexArray(), QOpenGLPaintEnginePrivate::flushDrawQueue(), QGLOffscreen::initialize(), and QGLMaskTextureCache::quadtreeBlocksize().
| #define DEBUG_ONCE_STR | ( | str | ) | ; |
Definition at line 98 of file qpaintengine_opengl.cpp.
Referenced by QOpenGLPaintEngine::drawEllipse(), QOpenGLPaintEnginePrivate::drawFastRect(), QOpenGLPaintEnginePrivate::drawOffscreenPath(), QGLMaskTextureCache::getMask(), QGLOffscreen::release(), QOpenGLPaintEnginePrivate::strokeLines(), and QOpenGLPaintEngine::updateRenderHints().
| #define DEBUG_OVERRIDE | ( | state | ) | ; |
Definition at line 97 of file qpaintengine_opengl.cpp.
| #define DISABLE_DEBUG_ONCE |
Definition at line 92 of file qpaintengine_opengl.cpp.
| #define FloatToQuint64 | ( | i | ) | (quint64)((i) * 32) |
Definition at line 2730 of file qpaintengine_opengl.cpp.
Referenced by QGLMaskTextureCache::hash().
| #define QGL_FUNC_CONTEXT QGLContext *ctx = const_cast<QGLContext *>(device->context()); |
Definition at line 75 of file qpaintengine_opengl.cpp.
Referenced by QOpenGLPaintEnginePrivate::composite(), QOpenGLPaintEnginePrivate::fillVertexArray(), and QOpenGLPaintEnginePrivate::updateFragmentProgramData().
| #define QREAL_MAX 9e100 |
Definition at line 87 of file qpaintengine_opengl.cpp.
Referenced by QGLEllipseMaskGenerator::screenRect().
| #define QREAL_MIN -9e100 |
Definition at line 88 of file qpaintengine_opengl.cpp.
| typedef QHash<const QGLContext*, QGLFontGlyphHash*> QGLContextHash |
Definition at line 4551 of file qpaintengine_opengl.cpp.
| typedef QHash<QFontEngine*, QGLGlyphHash*> QGLFontGlyphHash |
Definition at line 4549 of file qpaintengine_opengl.cpp.
| typedef QHash<quint64, QGLFontTexture*> QGLFontTexHash |
Definition at line 4550 of file qpaintengine_opengl.cpp.
| typedef QHash<glyph_t, QGLGlyphCoord*> QGLGlyphHash |
Definition at line 4548 of file qpaintengine_opengl.cpp.
| typedef QMultiHash<const QGLContext *, GLProgram> QGLProgramHash |
Definition at line 516 of file qpaintengine_opengl.cpp.
|
static |
Definition at line 3558 of file qpaintengine_opengl.cpp.
Referenced by QOpenGLPaintEngine::drawLines().
|
static |
Definition at line 1730 of file qpaintengine_opengl.cpp.
Referenced by QGLTrapezoidMaskGenerator::drawMask().
|
static |
Definition at line 3280 of file qpaintengine_opengl.cpp.
Definition at line 1103 of file qpaintengine_opengl.cpp.
Referenced by QGLGradientCache::generateGradientColorTable().
|
inlinestatic |
Definition at line 5489 of file qpaintengine_opengl.cpp.
|
inlinestatic |
Definition at line 2124 of file qpaintengine_opengl.cpp.
Referenced by QOpenGLPaintEngine::fill(), and QOpenGLPaintEnginePrivate::updateUseEmulation().
|
static |
Definition at line 4138 of file qpaintengine_opengl.cpp.
Referenced by QOpenGLPaintEngine::drawPath().
| void qgl_cleanup_glyph_cache | ( | QGLContext * | ctx | ) |
Definition at line 4917 of file qpaintengine_opengl.cpp.
Referenced by QGLPixelBuffer::~QGLPixelBuffer().
|
static |
Definition at line 4274 of file qpaintengine_opengl.cpp.
Referenced by QOpenGLPaintEngine::drawImage(), and QOpenGLPaintEngine::drawPixmap().
| void qt_add_rect_to_array | ( | const QRectF & | r, |
| GLfloat * | array | ||
| ) |
Definition at line 2972 of file qgl.cpp.
Referenced by QOpenGLPaintEnginePrivate::composite(), QOpenGLPaintEnginePrivate::drawFastRect(), QGLTrapezoidMaskGenerator::drawMask(), QGLEllipseMaskGenerator::drawMask(), QOpenGLPaintEngine::drawStaticTextItem(), drawTexture(), QOpenGLPaintEngine::drawTextureRect(), QOpenGLPaintEngine::drawTiledPixmap(), and QGLTrapezoidMaskGenerator::QGLTrapezoidMaskGenerator().
Definition at line 2989 of file qgl.cpp.
Referenced by QOpenGLPaintEngine::drawStaticTextItem(), QOpenGLPaintEngine::drawTextureRect(), QOpenGLPaintEngine::drawTiledPixmap(), and QGLTrapezoidMaskGenerator::QGLTrapezoidMaskGenerator().
|
inlinestatic |
Definition at line 4553 of file qpaintengine_opengl.cpp.
Referenced by QGLGlyphCache::cleanCache(), QGLGlyphCache::cleanupContext(), and QGLGlyphCache::fontEngineDestroyed().
|
inlinestatic |
Definition at line 112 of file qpaintengine_opengl.cpp.
Referenced by QOpenGLPaintEngine::drawStaticTextItem(), QOpenGLPaintEnginePrivate::flushDrawQueue(), QOpenGLPaintEnginePrivate::setGradientOps(), and QOpenGLPaintEnginePrivate::updateGradient().
| Q_GUI_EXPORT QImage qt_imageForBrush | ( | int | brushStyle, |
| bool | invert | ||
| ) |
Definition at line 167 of file qbrush.cpp.
Referenced by QOpenGLPaintEnginePrivate::composite().
| Q_GUI_EXPORT bool qt_isExtendedRadialGradient | ( | const QBrush & | brush | ) |
Definition at line 881 of file qbrush.cpp.
Referenced by QOpenGLPaintEngine::fill(), QOpenGLPaintEnginePrivate::fillPath(), QBrush::isOpaque(), QVGPaintEnginePrivate::needsEmulation(), and QOpenGLPaintEnginePrivate::updateUseEmulation().
| int qt_next_power_of_two | ( | int | v | ) |
Definition at line 1886 of file qgl.cpp.
Referenced by QOpenGLPaintEngine::begin(), QGLGlyphCache::cacheGlyphs(), QGLOffscreen::initialize(), and QGLMaskTextureCache::quadtreeFindExistingLocation().
| Q_GUI_EXPORT QPainterPath qt_painterPathFromVectorPath | ( | const QVectorPath & | path | ) |
Definition at line 1033 of file qpaintengineex.cpp.
Referenced by QOpenGLPaintEngine::fill(), and QOpenGLPaintEngine::transformChanged().
| Q_GUI_EXPORT bool qt_scaleForTransform | ( | const QTransform & | transform, |
| qreal * | scale | ||
| ) |
Definition at line 2407 of file qtransform.cpp.
Referenced by QOpenGLPaintEnginePrivate::strokeLines(), and QOpenGLPaintEnginePrivate::strokePath().
Definition at line 4268 of file qpaintengine_opengl.cpp.
Referenced by QOpenGLPaintEngine::drawImage(), and QOpenGLPaintEngine::drawPixmap().
|
inlinestatic |
Definition at line 916 of file qpaintengine_opengl.cpp.
Referenced by QGLStrokeCache::addCacheElement(), and QOpenGLPaintEnginePrivate::strokePath().
|
inlinestatic |
Definition at line 903 of file qpaintengine_opengl.cpp.
Referenced by QOpenGLPaintEnginePrivate::composite(), QGL2PaintEngineExPrivate::drawCachedGlyphs(), QGL2PaintEngineExPrivate::drawPixmapFragments(), QOpenGLPaintEngine::drawTextureRect(), QOpenGLPaintEngine::drawTiledPixmap(), and QGL2PaintEngineExPrivate::QGL2PaintEngineExPrivate().
|
static |
Definition at line 109 of file qpaintengine_opengl.cpp.
Referenced by QOpenGLPaintEngine::begin(), and QGLOffscreen::release().
|
static |
Definition at line 4522 of file qpaintengine_opengl.cpp.
Referenced by QGLGlyphCache::cacheGlyphs().
|
static |
Definition at line 4523 of file qpaintengine_opengl.cpp.
Referenced by QGLGlyphCache::cacheGlyphs().