QStateSet Class

(Qt3D::QStateSet)

The Qt3D::QStateSet FrameGraph node offers a way of specifying a set of Qt3D::QRenderState to be applied during the execution of a FrameGraph branch. More...

Header: #include <QStateSet>
qmake: QT += 3drenderer
Since: Qt 5.5
Inherits: QFrameGraphNode

Public Functions

QStateSet(QNode * parent = 0)
~QStateSet()
void addRenderState(QRenderState * state)
void removeRenderState(QRenderState * state)
QList<QRenderState *> renderStates() const

Protected Functions

QStateSet(QStateSetPrivate & dd, QNode * parent = 0)
void copy(const QNode * ref)

Additional Inherited Members

Detailed Description

The Qt3D::QStateSet FrameGraph node offers a way of specifying a set of Qt3D::QRenderState to be applied during the execution of a FrameGraph branch.

States set on a Qt3D::QStateSet are set globally, contrary to the per Material states that can be set on a Qt3D::QRenderPass. By default an empty Qt3D::QStateSet will result in all render states being disabled when executed. Adding a Qt3D::QRenderState state explicitly enables that render state at runtime.

See also Qt3D::QRenderState and Qt3D::QRenderPass.

Member Function Documentation

QStateSet::QStateSet(QNode * parent = 0)

[protected] QStateSet::QStateSet(QStateSetPrivate & dd, QNode * parent = 0)

QStateSet::~QStateSet()

void QStateSet::addRenderState(QRenderState * state)

Adds a new Qt3D::QRenderState state to the Qt3D::QStateSet instance.

Note: Not setting any Qt3D::QRenderState state on a Qt3D::QStateSet instance implies all the render states will be disabled at render time.

[protected] void QStateSet::copy(const QNode * ref)

void QStateSet::removeRenderState(QRenderState * state)

Removes the Qt3D::QRenderState state from the Qt3D::QStateSet instance.

QList<QRenderState *> QStateSet::renderStates() const

Returns the list of Qt3D::QRenderState that compose the Qt3D::QStateSet instance.

© 2016 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.