![]() |
Qt 6.x
The Qt SDK
|
Inheritance diagram for QOpenGLWindowPaintDevice:
Collaboration diagram for QOpenGLWindowPaintDevice:Public Member Functions | |
| QOpenGLWindowPaintDevice (QOpenGLWindow *window) | |
| void | ensureActiveTarget () override |
| This virtual method is provided as a callback to allow re-binding a target frame buffer object or context when different QOpenGLPaintDevice instances are issuing draw calls alternately. | |
Public Member Functions inherited from QOpenGLPaintDevice | |
| QOpenGLPaintDevice () | |
| Constructs a QOpenGLPaintDevice. | |
| QOpenGLPaintDevice (const QSize &size) | |
| Constructs a QOpenGLPaintDevice with the given size. | |
| QOpenGLPaintDevice (int width, int height) | |
| Constructs a QOpenGLPaintDevice with the given width and height. | |
| ~QOpenGLPaintDevice () | |
| Destroys the QOpenGLPaintDevice. | |
| int | devType () const override |
| QPaintEngine * | paintEngine () const override |
| \reimp | |
| QOpenGLContext * | context () const |
| Returns the OpenGL context associated with the paint device. | |
| QSize | size () const |
| Returns the pixel size of the paint device. | |
| void | setSize (const QSize &size) |
| Sets the pixel size of the paint device to size. | |
| void | setDevicePixelRatio (qreal devicePixelRatio) |
| Sets the device pixel ratio for the paint device to devicePixelRatio. | |
| qreal | dotsPerMeterX () const |
| Returns the number of pixels per meter horizontally. | |
| qreal | dotsPerMeterY () const |
| Returns the number of pixels per meter vertically. | |
| void | setDotsPerMeterX (qreal) |
| Sets the number of pixels per meter horizontally to dpmx. | |
| void | setDotsPerMeterY (qreal) |
| Sets the number of pixels per meter vertically to dpmy. | |
| void | setPaintFlipped (bool flipped) |
| Sets whether painting should be flipped around the Y-axis or not to flipped. | |
| bool | paintFlipped () const |
Returns true if painting is flipped around the Y-axis. | |
| virtual void | ensureActiveTarget () |
| This virtual method is provided as a callback to allow re-binding a target frame buffer object or context when different QOpenGLPaintDevice instances are issuing draw calls alternately. | |
Public Member Functions inherited from QPaintDevice | |
| virtual | ~QPaintDevice () |
| virtual int | devType () const |
| bool | paintingActive () const |
| virtual QPaintEngine * | paintEngine () const =0 |
| int | width () const |
| int | height () const |
| int | widthMM () const |
| int | heightMM () const |
| int | logicalDpiX () const |
| int | logicalDpiY () const |
| int | physicalDpiX () const |
| int | physicalDpiY () const |
| qreal | devicePixelRatio () const |
| qreal | devicePixelRatioF () const |
| int | colorCount () const |
| int | depth () const |
Public Attributes | |
| QOpenGLWindow * | m_window |
Definition at line 145 of file qopenglwindow.cpp.
|
inline |
Definition at line 148 of file qopenglwindow.cpp.
|
overridevirtual |
This virtual method is provided as a callback to allow re-binding a target frame buffer object or context when different QOpenGLPaintDevice instances are issuing draw calls alternately.
\l{QPainter::beginNativePainting()}{beginNativePainting()} will also trigger this method.
The default implementation does nothing.
Reimplemented from QOpenGLPaintDevice.
Definition at line 322 of file qopenglwindow.cpp.
References QOpenGLWindowPrivate::bindFBO(), QOpenGLWindowPrivate::get(), and m_window.
Here is the call graph for this function:| QOpenGLWindow* QOpenGLWindowPaintDevice::m_window |
Definition at line 151 of file qopenglwindow.cpp.
Referenced by ensureActiveTarget().