63 , m_clear_color(
Qt::transparent)
95 if (
d->m_root_node == node)
98 d->m_root_node->m_renderers.removeOne(
this);
101 d->m_root_node = node;
102 if (
d->m_root_node) {
103 Q_ASSERT(!
d->m_root_node->m_renderers.contains(
this));
104 d->m_root_node->m_renderers <<
this;
117 return d->m_root_node;
138 d->m_device_rect =
rect;
149 return d->m_device_rect;
171 d->m_viewport_rect =
rect;
182 return d->m_viewport_rect;
250 d->m_projection_matrix =
matrix;
259 d->m_projection_matrix_native_ndc =
matrix;
270 return d->m_projection_matrix;
279 return d->m_projection_matrix_native_ndc;
303 return d->m_clear_color;
315 d->m_clear_mode =
mode;
327 return d->m_clear_mode;
345#include "moc_qsgabstractrenderer_p.cpp"
The QColor class provides colors based on RGB, HSV or CMYK values.
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
QSGAbstractRendererPrivate()
QSGAbstractRenderer gives access to the scene graph nodes and rendering.
QRect deviceRect() const
Returns the device rect of the surface being rendered to.
void setProjectionMatrix(const QMatrix4x4 &matrix)
Use matrix to project the QSGNode coordinates onto surface pixels.
QRect viewportRect() const
Returns the rect of the viewport to render.
void setViewportRect(const QRect &rect)
Sets rect as the geometry of the viewport to render on the surface.
QMatrix4x4 projectionMatrix() const
Returns the projection matrix.
virtual void prepareSceneInline()
QSGRootNode * rootNode() const
Returns the root of the QSGNode scene.
void setProjectionMatrixToRect(const QRectF &rect)
Convenience method that calls setProjectionMatrix() with an orthographic matrix generated from rect.
void setDeviceRect(const QRect &rect)
Sets rect as the geometry of the surface being rendered to.
virtual void renderSceneInline()
~QSGAbstractRenderer() override
void setClearColor(const QColor &color)
Use color to clear the framebuffer when clearMode() is set to QSGAbstractRenderer::ClearColorBuffer.
QMatrix4x4 projectionMatrixWithNativeNDC() const
QSGAbstractRenderer(QObject *parent=nullptr)
void setClearMode(ClearMode mode)
Defines which attachment of the framebuffer should be cleared before each scene render with the mode ...
void setProjectionMatrixWithNativeNDC(const QMatrix4x4 &matrix)
QColor clearColor() const
Returns the color that clears the framebuffer at the beginning of the rendering.
void setRootNode(QSGRootNode *node)
Sets the node as the root of the QSGNode scene that you want to render.
virtual void nodeChanged(QSGNode *node, QSGNode::DirtyState state)=0
ClearMode clearMode() const
Flags defining which attachment of the framebuffer will be cleared before each scene render.
The QSGRootNode is the toplevel root of any scene graph.
Combined button and popup list for selecting options.
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent