QNoDraw Class

(Qt3DRender::QNoDraw)

When a QNoDraw node is present in a FrameGraph branch, this prevents the renderer from rendering any primitive. More...

Header: #include <QNoDraw>
qmake: QT += 3drender
Since: Qt 5.5
Inherits: Qt3DRender::QFrameGraphNode

Public Functions

QNoDraw(Qt3DCore::QNode *parent = Q_NULLPTR)
~QNoDraw()

Additional Inherited Members

Detailed Description

When a QNoDraw node is present in a FrameGraph branch, this prevents the renderer from rendering any primitive.

QNoDraw should be used when the FrameGraph needs to set up some render states or clear some buffers without requiring any mesh to be drawn. It has the same effect as having a Qt3DRender::QRenderPassFilter that matches none of available Qt3DRender::QRenderPass instances of the scene without the overhead cost of actually performing the filtering.

Member Function Documentation

QNoDraw::QNoDraw(Qt3DCore::QNode *parent = Q_NULLPTR)

Default constructs an instance of QNoDraw.

QNoDraw::~QNoDraw()

Destroys the instance of QNoDraw.

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.