QRenderStateSet Class

( Qt3DRender::QRenderStateSet )

The QRenderStateSet FrameGraph node offers a way of specifying a set of QRenderState objects to be applied during the execution of a framegraph branch. 更多...

头: #include <QRenderStateSet>
qmake: QT += 3drender
Since: Qt 5.5
实例化: RenderStateSet
继承: Qt3DRender::QFrameGraphNode

公共函数

QRenderStateSet (Qt3DCore::QNode * parent = nullptr)
void addRenderState (QRenderState * state )
void removeRenderState (QRenderState * state )
QVector<QRenderState *> renderStates () const

保护函数

QRenderStateSet (QRenderStateSetPrivate & dd , Qt3DCore::QNode * parent = nullptr)

额外继承成员

详细描述

The QRenderStateSet FrameGraph node offers a way of specifying a set of QRenderState objects to be applied during the execution of a framegraph branch.

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

另请参阅 QRenderState and QRenderPass .

成员函数文档编制

QRenderStateSet:: QRenderStateSet ( Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QRenderStateSet.

[protected] QRenderStateSet:: QRenderStateSet ( QRenderStateSetPrivate & dd , Qt3DCore::QNode * parent = nullptr)

Copy constructor.

void QRenderStateSet:: addRenderState ( QRenderState * state )

Adds a new QRenderState state QRenderStateSet 实例。

注意: Not setting any QRenderState state on a QRenderStateSet instance implies all the render states will be disabled at render time.

void QRenderStateSet:: removeRenderState ( QRenderState * state )

移除 QRenderState state QRenderStateSet 实例。

QVector < QRenderState *> QRenderStateSet:: renderStates () const

Returns the list of QRenderState objects that compose the QRenderStateSet 实例。