![]() |
Qt 6.x
The Qt SDK
|
#include <qopenglpaintengine_p.h>
Public Member Functions | |
QOpenGL2PaintEngineEx () | |
~QOpenGL2PaintEngineEx () | |
bool | begin (QPaintDevice *device) override |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. | |
void | ensureActive () |
bool | end () override |
Reimplement this function to finish painting on the current paint device. | |
virtual void | clipEnabledChanged () override |
virtual void | penChanged () override |
virtual void | brushChanged () override |
virtual void | brushOriginChanged () override |
virtual void | opacityChanged () override |
virtual void | compositionModeChanged () override |
virtual void | renderHintsChanged () override |
virtual void | transformChanged () override |
virtual void | drawPixmap (const QRectF &r, const QPixmap &pm, const QRectF &sr) override |
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r. | |
virtual void | drawPixmapFragments (const QPainter::PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, QPainter::PixmapFragmentHints hints) override |
virtual void | drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) override |
Reimplement this function to draw the part of the image specified by the sr rectangle in the given rectangle using the given conversion flags flags, to convert it to a pixmap. | |
virtual void | drawTextItem (const QPointF &p, const QTextItem &textItem) override |
This function draws the text item textItem at position p. | |
virtual void | fill (const QVectorPath &path, const QBrush &brush) override |
virtual void | stroke (const QVectorPath &path, const QPen &pen) override |
virtual void | clip (const QVectorPath &path, Qt::ClipOperation op) override |
virtual void | drawStaticTextItem (QStaticTextItem *textItem) override |
bool | drawTexture (const QRectF &r, GLuint textureId, const QSize &size, const QRectF &sr) |
Type | type () const override |
Reimplement this function to return the paint engine \l{Type}. | |
virtual void | setState (QPainterState *s) override |
virtual QPainterState * | createState (QPainterState *orig) const override |
QOpenGL2PaintEngineState * | state () |
const QOpenGL2PaintEngineState * | state () const |
void | beginNativePainting () override |
void | endNativePainting () override |
void | invalidateState () |
void | setRenderTextActive (bool) |
bool | isNativePaintingActive () const |
bool | requiresPretransformedGlyphPositions (QFontEngine *, const QTransform &) const override |
bool | shouldDrawCachedGlyphs (QFontEngine *, const QTransform &) const override |
![]() | |
QPaintEngineEx () | |
virtual QPainterState * | createState (QPainterState *orig) const |
virtual void | draw (const QVectorPath &path) |
virtual void | fill (const QVectorPath &path, const QBrush &brush)=0 |
virtual void | stroke (const QVectorPath &path, const QPen &pen) |
virtual void | clip (const QVectorPath &path, Qt::ClipOperation op)=0 |
virtual void | clip (const QRect &rect, Qt::ClipOperation op) |
virtual void | clip (const QRegion ®ion, Qt::ClipOperation op) |
virtual void | clip (const QPainterPath &path, Qt::ClipOperation op) |
virtual void | clipEnabledChanged ()=0 |
virtual void | penChanged ()=0 |
virtual void | brushChanged ()=0 |
virtual void | brushOriginChanged ()=0 |
virtual void | opacityChanged ()=0 |
virtual void | compositionModeChanged ()=0 |
virtual void | renderHintsChanged ()=0 |
virtual void | transformChanged ()=0 |
virtual void | fillRect (const QRectF &rect, const QBrush &brush) |
virtual void | fillRect (const QRectF &rect, const QColor &color) |
virtual void | drawRoundedRect (const QRectF &rect, qreal xrad, qreal yrad, Qt::SizeMode mode) |
virtual void | drawRects (const QRect *rects, int rectCount) override |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation converts the first rectCount rectangles in the buffer rects to a QRectF and calls the floating point version of this function. | |
virtual void | drawRects (const QRectF *rects, int rectCount) override |
Draws the first rectCount rectangles in the buffer rects. | |
virtual void | drawLines (const QLine *lines, int lineCount) override |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation converts the first lineCount lines in lines to a QLineF and calls the floating point version of this function. | |
virtual void | drawLines (const QLineF *lines, int lineCount) override |
The default implementation splits the list of lines in lines into lineCount separate calls to drawPath() or drawPolygon() depending on the feature set of the paint engine. | |
virtual void | drawEllipse (const QRectF &r) override |
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect. | |
virtual void | drawEllipse (const QRect &r) override |
The default implementation of this function calls the floating point version of this function. | |
virtual void | drawPath (const QPainterPath &path) override |
The default implementation ignores the path and does nothing. | |
virtual void | drawPoints (const QPointF *points, int pointCount) override |
Draws the first pointCount points in the buffer points. | |
virtual void | drawPoints (const QPoint *points, int pointCount) override |
Draws the first pointCount points in the buffer points. | |
virtual void | drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) override |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode. | |
virtual void | drawPolygon (const QPoint *points, int pointCount, PolygonDrawMode mode) override |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode. | |
virtual void | drawPixmap (const QRectF &r, const QPixmap &pm, const QRectF &sr) override=0 |
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r. | |
virtual void | drawPixmap (const QPointF &pos, const QPixmap &pm) |
virtual void | drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) override=0 |
Reimplement this function to draw the part of the image specified by the sr rectangle in the given rectangle using the given conversion flags flags, to convert it to a pixmap. | |
virtual void | drawImage (const QPointF &pos, const QImage &image) |
virtual void | drawTiledPixmap (const QRectF &r, const QPixmap &pixmap, const QPointF &s) override |
Reimplement this function to draw the pixmap in the given rect, starting at the given p. | |
virtual void | drawPixmapFragments (const QPainter::PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, QFlags< QPainter::PixmapFragmentHint > hints) |
virtual void | updateState (const QPaintEngineState &state) override |
Reimplement this function to update the state of a paint engine. | |
virtual void | drawStaticTextItem (QStaticTextItem *) |
virtual void | setState (QPainterState *s) |
QPainterState * | state () |
const QPainterState * | state () const |
virtual void | sync () |
virtual void | beginNativePainting () |
virtual void | endNativePainting () |
virtual uint | flags () const |
virtual bool | requiresPretransformedGlyphPositions (QFontEngine *fontEngine, const QTransform &m) const |
virtual bool | shouldDrawCachedGlyphs (QFontEngine *fontEngine, const QTransform &m) const |
![]() | |
QPaintEngine (PaintEngineFeatures features=PaintEngineFeatures()) | |
Creates a paint engine with the featureset specified by caps. | |
virtual | ~QPaintEngine () |
Destroys the paint engine. | |
bool | isActive () const |
Returns true if the paint engine is actively drawing; otherwise returns false . | |
void | setActive (bool newState) |
Sets the active state of the paint engine to state. | |
virtual bool | begin (QPaintDevice *pdev)=0 |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. | |
virtual bool | end ()=0 |
Reimplement this function to finish painting on the current paint device. | |
virtual void | updateState (const QPaintEngineState &state)=0 |
Reimplement this function to update the state of a paint engine. | |
virtual void | drawRects (const QRect *rects, int rectCount) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation converts the first rectCount rectangles in the buffer rects to a QRectF and calls the floating point version of this function. | |
virtual void | drawRects (const QRectF *rects, int rectCount) |
Draws the first rectCount rectangles in the buffer rects. | |
virtual void | drawLines (const QLine *lines, int lineCount) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default implementation converts the first lineCount lines in lines to a QLineF and calls the floating point version of this function. | |
virtual void | drawLines (const QLineF *lines, int lineCount) |
The default implementation splits the list of lines in lines into lineCount separate calls to drawPath() or drawPolygon() depending on the feature set of the paint engine. | |
virtual void | drawEllipse (const QRectF &r) |
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect. | |
virtual void | drawEllipse (const QRect &r) |
The default implementation of this function calls the floating point version of this function. | |
virtual void | drawPath (const QPainterPath &path) |
The default implementation ignores the path and does nothing. | |
virtual void | drawPoints (const QPointF *points, int pointCount) |
Draws the first pointCount points in the buffer points. | |
virtual void | drawPoints (const QPoint *points, int pointCount) |
Draws the first pointCount points in the buffer points. | |
virtual void | drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode. | |
virtual void | drawPolygon (const QPoint *points, int pointCount, PolygonDrawMode mode) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode. | |
virtual void | drawPixmap (const QRectF &r, const QPixmap &pm, const QRectF &sr)=0 |
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r. | |
virtual void | drawTextItem (const QPointF &p, const QTextItem &textItem) |
This function draws the text item textItem at position p. | |
virtual void | drawTiledPixmap (const QRectF &r, const QPixmap &pixmap, const QPointF &s) |
Reimplement this function to draw the pixmap in the given rect, starting at the given p. | |
virtual void | drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) |
Reimplement this function to draw the part of the image specified by the sr rectangle in the given rectangle using the given conversion flags flags, to convert it to a pixmap. | |
void | setPaintDevice (QPaintDevice *device) |
QPaintDevice * | paintDevice () const |
Returns the device that this engine is painting on, if painting is active; otherwise returns \nullptr. | |
void | setSystemClip (const QRegion &baseClip) |
QRegion | systemClip () const |
void | setSystemRect (const QRect &rect) |
QRect | systemRect () const |
virtual QPoint | coordinateOffset () const |
virtual Type | type () const =0 |
Reimplement this function to return the paint engine \l{Type}. | |
void | fix_neg_rect (int *x, int *y, int *w, int *h) |
bool | testDirty (DirtyFlags df) |
void | setDirty (DirtyFlags df) |
void | clearDirty (DirtyFlags df) |
bool | hasFeature (PaintEngineFeatures feature) const |
Returns true if the paint engine supports the specified feature; otherwise returns false . | |
QPainter * | painter () const |
Returns the paint engine's painter. | |
void | syncState () |
bool | isExtended () const |
virtual QPixmap | createPixmap (QSize size) |
virtual QPixmap | createPixmapFromImage (QImage image, Qt::ImageConversionFlags flags=Qt::AutoColor) |
Friends | |
class | QOpenGLEngineShaderManager |
Additional Inherited Members | |
![]() | |
enum | Flags { DoNotEmulate = 0x01 , IsEmulationEngine = 0x02 } |
![]() | |
enum | PaintEngineFeature { PrimitiveTransform = 0x00000001 , PatternTransform = 0x00000002 , PixmapTransform = 0x00000004 , PatternBrush = 0x00000008 , LinearGradientFill = 0x00000010 , RadialGradientFill = 0x00000020 , ConicalGradientFill = 0x00000040 , AlphaBlend = 0x00000080 , PorterDuff = 0x00000100 , PainterPaths = 0x00000200 , Antialiasing = 0x00000400 , BrushStroke = 0x00000800 , ConstantOpacity = 0x00001000 , MaskedBrush = 0x00002000 , PerspectiveTransform = 0x00004000 , BlendModes = 0x00008000 , ObjectBoundingModeGradients = 0x00010000 , RasterOpModes = 0x00020000 , PaintOutsidePaintEvent = 0x20000000 , AllFeatures = 0xffffffff } |
This enum is used to describe the features or capabilities that the paint engine has. More... | |
enum | DirtyFlag { DirtyPen = 0x0001 , DirtyBrush = 0x0002 , DirtyBrushOrigin = 0x0004 , DirtyFont = 0x0008 , DirtyBackground = 0x0010 , DirtyBackgroundMode = 0x0020 , DirtyTransform = 0x0040 , DirtyClipRegion = 0x0080 , DirtyClipPath = 0x0100 , DirtyHints = 0x0200 , DirtyCompositionMode = 0x0400 , DirtyClipEnabled = 0x0800 , DirtyOpacity = 0x1000 , AllDirty = 0xffff } |
\value DirtyPen The pen is dirty and needs to be updated. More... | |
enum | PolygonDrawMode { OddEvenMode , WindingMode , ConvexMode , PolylineMode } |
\value OddEvenMode The polygon should be drawn using OddEven fill rule. More... | |
enum | Type { X11 , Windows , QuickDraw , CoreGraphics , MacPrinter , QWindowSystem , OpenGL , Picture , SVG , Raster , Direct3D , Pdf , OpenVG , OpenGL2 , PaintBuffer , Blitter , Direct2D , User = 50 , MaxUser = 100 } |
\value X11 \value Windows \value MacPrinter \value CoreGraphics \macos's Quartz2D (CoreGraphics) \value QuickDraw \macos's QuickDraw \value QWindowSystem Qt for Embedded Linux \value OpenGL \value Picture QPicture format \value SVG Scalable Vector Graphics XML format \value Raster \value Direct3D Windows only, Direct3D based engine \value Pdf Portable Document Format \value OpenVG \value User First user type ID \value MaxUser Last user type ID \value OpenGL2 \value PaintBuffer \value Blitter \value Direct2D Windows only, Direct2D based engine More... | |
![]() | |
QPaintEngineEx (QPaintEngineExPrivate &data) | |
![]() | |
QPaintEngine (QPaintEnginePrivate &data, PaintEngineFeatures devcaps=PaintEngineFeatures()) | |
![]() | |
QPaintEngineState * | state |
PaintEngineFeatures | gccaps |
uint | active: 1 |
uint | selfDestruct: 1 |
uint | extended: 1 |
QScopedPointer< QPaintEnginePrivate > | d_ptr |
Definition at line 75 of file qopenglpaintengine_p.h.
QOpenGL2PaintEngineEx::QOpenGL2PaintEngineEx | ( | ) |
Definition at line 1331 of file qopenglpaintengine.cpp.
References QPaintEngine::~QPaintEngine(), QPaintEngine::gccaps, and QPaintEngine::RasterOpModes.
QOpenGL2PaintEngineEx::~QOpenGL2PaintEngineEx | ( | ) |
Definition at line 1337 of file qopenglpaintengine.cpp.
|
overridevirtual |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev.
Return true if the initialization was successful; otherwise return false.
Implements QPaintEngine.
Definition at line 2179 of file qopenglpaintengine.cpp.
References QOpenGLPaintDevicePrivate::beginPaint(), BrushDrawingMode, QSurfaceFormat::CoreProfile, QOpenGLContext::currentContext(), d, QPaintDevice::devType(), QOpenGLContext::format(), QFontEngine::Format_A32, QFontEngine::Format_A8, QOpenGLPaintDevicePrivate::get(), GL_MULTISAMPLE, QSize::height(), i, QRegion::isEmpty(), QInternal::OpenGL, Q_ASSERT, qMakePair(), QOpenGLEngineShaderManager, QT_GL_VERTEX_ARRAY_TRACKED_COUNT, qWarning, QOpenGLBuffer::StreamDraw, QPaintEngine::systemClip(), and QSize::width().
|
overridevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 665 of file qopenglpaintengine.cpp.
References BrushDrawingMode, QSurfaceFormat::CompatibilityProfile, QOpenGLContext::currentContext(), d, QTransform::dx(), QTransform::dy(), ensureActive(), fmt, GLuint, QSize::height(), i, QTransform::m11(), QTransform::m12(), QTransform::m13(), QTransform::m21(), QTransform::m22(), QTransform::m23(), QTransform::m33(), QPainterState::matrix, Q_ASSERT, QByteArrayLiteral, QT_GL_VERTEX_ARRAY_TRACKED_COUNT, QT_UNKNOWN_TEXTURE_UNIT, state(), and QSize::width().
|
overridevirtual |
Implements QPaintEngineEx.
Definition at line 1450 of file qopenglpaintengine.cpp.
|
overridevirtual |
|
overridevirtual |
Implements QPaintEngineEx.
Definition at line 2503 of file qopenglpaintengine.cpp.
References QOpenGL2PaintEngineState::canRestoreClip, QOpenGL2PaintEngineState::clipChanged, QOpenGL2PaintEngineState::clipTestEnabled, QOpenGL2PaintEngineState::currentClip, d, ensureActive(), Qt::IntersectClip, QRect::intersected(), QTransform::mapRect(), QPainterState::matrix, Qt::NoClip, qFuzzyIsNull(), qt_mapFillRect(), rect, QOpenGL2PaintEngineState::rectangleClip, QVectorPath::RectangleHint, Qt::ReplaceClip, state(), QTransform::TxRotate, and QTransform::TxScale.
|
overridevirtual |
Implements QPaintEngineEx.
Definition at line 2405 of file qopenglpaintengine.cpp.
References QOpenGL2PaintEngineState::clipChanged, d, QPaintEngine::painter(), and state().
|
overridevirtual |
Implements QPaintEngineEx.
Definition at line 1469 of file qopenglpaintengine.cpp.
References QOpenGL2PaintEngineState::compositionModeChanged, d, and state().
|
overridevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 2663 of file qopenglpaintengine.cpp.
References ensureActive().
|
overridevirtual |
Reimplement this function to draw the part of the image specified by the sr rectangle in the given rectangle using the given conversion flags flags, to convert it to a pixmap.
Implements QPaintEngineEx.
Definition at line 1551 of file qopenglpaintengine.cpp.
References QOpenGLEngineShaderManager::AlphaImageSrc, d, drawImage(), ensureActive(), QImage::Format_Alpha8, QImage::Format_ARGB32, QImage::Format_Grayscale16, QImage::Format_Grayscale8, QImage::Format_RGBA16FPx4, QImage::Format_RGBA32FPx4, QImage::Format_RGBA64, QImage::Format_RGBA8888, GL_CLAMP_TO_EDGE, GLenum(), QOpenGLEngineShaderManager::GrayscaleImageSrc, QImage::height(), ImageDrawingMode, QOpenGLEngineShaderManager::ImageSrc, Qt::KeepAspectRatio, QOpenGLEngineShaderManager::NonPremultipliedImageSrc, QOpenGLTextureUploader::PremultipliedAlphaBindOption, QT_IMAGE_TEXTURE_UNIT, QPainterState::renderHints, scaled(), scaleRect(), QPainter::SmoothPixmapTransform, state(), QOpenGLFunctions::TextureRGFormats, QOpenGLTextureUploader::UseRedForAlphaAndLuminanceBindOption, and QImage::width().
Referenced by drawImage(), and drawPixmap().
|
overridevirtual |
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
Implements QPaintEngineEx.
Definition at line 1515 of file qopenglpaintengine.cpp.
References d, drawImage(), drawPixmap(), ensureActive(), GL_CLAMP_TO_EDGE, GLenum(), QImage::height(), ImageDrawingMode, QOpenGLEngineShaderManager::ImageSrc, Qt::KeepAspectRatio, QOpenGLEngineShaderManager::PatternSrc, pixmap, QT_IMAGE_TEXTURE_UNIT, QPaintEngine::Raster, QPainterState::renderHints, scaled(), scaleRect(), QPainter::SmoothPixmapTransform, state(), and QImage::width().
Referenced by drawPixmap().
|
overridevirtual |
Definition at line 2077 of file qopenglpaintengine.cpp.
References QPainter::CompositionMode_Plus, d, QPaintEngineEx::drawPixmapFragments(), ensureActive(), Qt::KeepAspectRatio, pixmap, scaled(), and state().
|
overridevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 1609 of file qopenglpaintengine.cpp.
References QPainter::CompositionMode_Source, QPainter::CompositionMode_SourceOver, d, QPaintEngineEx::drawStaticTextItem(), ensureActive(), QStaticTextItem::fontEngine(), QFontEngine::Format_A32, QFontEngine::Format_A8, QFontEngine::Format_None, QFontEngine::glyphFormat, shouldDrawCachedGlyphs(), state(), and QTransform::TxTranslate.
|
overridevirtual |
This function draws the text item textItem at position p.
The default implementation of this function converts the text to a QPainterPath and paints the resulting path.
Reimplemented from QPaintEngine.
Definition at line 1656 of file qopenglpaintengine.cpp.
References QPainterState::composition_mode, QPainter::CompositionMode_Source, QPainter::CompositionMode_SourceOver, d, QVarLengthArray< T, Prealloc >::data(), QPaintEngine::drawTextItem(), ensureActive(), QTextItemInt::flags, QTextItemInt::fontEngine, QFontEngine::Format_A32, QFontEngine::Format_A8, QFontEngine::Format_None, QTransform::fromTranslate(), QFontEngine::getGlyphPositions(), QFontEngine::glyphFormat, QStaticTextItem::glyphPositions, QStaticTextItem::glyphs, QTextItemInt::glyphs, QStaticTextItem::numGlyphs, positions, QStaticTextItem::setFontEngine(), shouldDrawCachedGlyphs(), QVLABaseBase::size(), state(), and QTransform::TxTranslate.
bool QOpenGL2PaintEngineEx::drawTexture | ( | const QRectF & | r, |
GLuint | textureId, | ||
const QSize & | size, | ||
const QRectF & | sr | ||
) |
Definition at line 1636 of file qopenglpaintengine.cpp.
References d, ensureActive(), GL_CLAMP_TO_EDGE, GLenum(), ImageDrawingMode, QOpenGLEngineShaderManager::ImageSrc, QT_IMAGE_TEXTURE_UNIT, QPainterState::renderHints, QPainter::SmoothPixmapTransform, and state().
|
overridevirtual |
Reimplement this function to finish painting on the current paint device.
Return true if painting was finished successfully; otherwise return false.
Implements QPaintEngine.
Definition at line 2291 of file qopenglpaintengine.cpp.
References BrushDrawingMode, d, QOpenGLPaintDevicePrivate::endPaint(), and QOpenGLPaintDevicePrivate::get().
|
overridevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 755 of file qopenglpaintengine.cpp.
References d.
void QOpenGL2PaintEngineEx::ensureActive | ( | ) |
Definition at line 2323 of file qopenglpaintengine.cpp.
References BrushDrawingMode, d, GLfloat(), i, QPaintEngine::isActive(), setState(), and state().
Referenced by beginNativePainting(), clip(), createState(), drawImage(), drawPixmap(), drawPixmapFragments(), drawStaticTextItem(), drawTextItem(), drawTexture(), fill(), and stroke().
|
overridevirtual |
Implements QPaintEngineEx.
Definition at line 1341 of file qopenglpaintengine.cpp.
References d, ensureActive(), Qt::NoBrush, and qbrush_style().
void QOpenGL2PaintEngineEx::invalidateState | ( | ) |
Definition at line 762 of file qopenglpaintengine.cpp.
References d.
bool QOpenGL2PaintEngineEx::isNativePaintingActive | ( | ) | const |
Definition at line 768 of file qopenglpaintengine.cpp.
References d.
|
overridevirtual |
Implements QPaintEngineEx.
Definition at line 1458 of file qopenglpaintengine.cpp.
References d, QOpenGL2PaintEngineState::opacityChanged, Q_ASSERT, and state().
|
overridevirtual |
Implements QPaintEngineEx.
Definition at line 1449 of file qopenglpaintengine.cpp.
|
overridevirtual |
Implements QPaintEngineEx.
Definition at line 1477 of file qopenglpaintengine.cpp.
References QPainter::Antialiasing, QOpenGLContext::currentContext(), d, GL_MULTISAMPLE, GLuint, QOpenGL2PaintEngineState::renderHintsChanged, and state().
Referenced by setState().
|
inlineoverridevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 128 of file qopenglpaintengine_p.h.
void QOpenGL2PaintEngineEx::setRenderTextActive | ( | bool | ) |
|
overridevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 2620 of file qopenglpaintengine.cpp.
References QOpenGL2PaintEngineState::canRestoreClip, QOpenGL2PaintEngineState::clipChanged, QOpenGL2PaintEngineState::compositionModeChanged, d, QOpenGL2PaintEngineState::matrixChanged, QOpenGL2PaintEngineState::opacityChanged, QOpenGL2PaintEngineState::renderHintsChanged, renderHintsChanged(), QPaintEngineEx::setState(), and state().
Referenced by ensureActive().
|
overridevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 1726 of file qopenglpaintengine.cpp.
References QPaintEngineEx::shouldDrawCachedGlyphs(), QFontEngine::supportsTransformation(), and QTransform::TxProject.
Referenced by drawStaticTextItem(), and drawTextItem().
|
inline |
Definition at line 113 of file qopenglpaintengine_p.h.
References QPaintEngineEx::state().
Referenced by beginNativePainting(), clip(), clipEnabledChanged(), compositionModeChanged(), drawImage(), drawPixmap(), drawPixmapFragments(), drawStaticTextItem(), drawTextItem(), drawTexture(), ensureActive(), opacityChanged(), renderHintsChanged(), setState(), stroke(), and transformChanged().
|
inline |
Definition at line 116 of file qopenglpaintengine_p.h.
References QPaintEngineEx::state().
|
overridevirtual |
Reimplemented from QPaintEngineEx.
Definition at line 1355 of file qopenglpaintengine.cpp.
References d, ensureActive(), QPen::isCosmetic(), Qt::NoBrush, Qt::NoPen, qbrush_style(), qpen_brush(), qpen_style(), qt_scaleForTransform(), state(), and QPaintEngineEx::stroke().
|
overridevirtual |
Implements QPaintEngineEx.
Definition at line 1502 of file qopenglpaintengine.cpp.
References d, QOpenGL2PaintEngineState::matrixChanged, and state().
|
inlineoverridevirtual |
Reimplement this function to return the paint engine \l{Type}.
Implements QPaintEngine.
Definition at line 109 of file qopenglpaintengine_p.h.
References QPaintEngine::OpenGL2.
|
friend |
Definition at line 134 of file qopenglpaintengine_p.h.
Referenced by begin().