Provides a way of specifying a render target 更多...
| 頭: | #include <QRenderTargetSelector> |
| qmake: | QT += 3drender |
| Since: | Qt 5.7 |
| 實例化: | RenderTargetSelector |
| 繼承: | Qt3DRender::QFrameGraphNode |
| QRenderTargetSelector (Qt3DCore::QNode * parent = nullptr) | |
| QVector<QRenderTargetOutput::AttachmentPoint> | outputs () const |
| void | setOutputs (const QVector<QRenderTargetOutput::AttachmentPoint> & buffers ) |
| QRenderTarget * | target () const |
| void | setTarget (QRenderTarget * target ) |
| void | targetChanged (QRenderTarget * target ) |
| QRenderTargetSelector (QRenderTargetSelectorPrivate & dd , Qt3DCore::QNode * parent = nullptr) |
Provides a way of specifying a render target
A Qt3DRender::QRenderTargetSelector is used to select active Qt3DRender::QRenderTarget for the FrameGraph. When QRenderTargetSelector is present in the FrameGraph, the rendering is directed into QTexture objects or draw buffers instead of the surface specified in the Qt3DRender::QRenderSurfaceSelector . A render buffer is automatically generated for an attachment point if drawBuffers contain attachment point that any output in the QRenderTarget do not specify. If the drawBuffers is empty, the renderer will default to using all the outputs in QRenderTarget .
Holds the current render target
訪問函數:
| QRenderTarget * | target () const |
| void | setTarget (QRenderTarget * target ) |
通知程序信號:
| void | targetChanged (QRenderTarget * target ) |
Default constructs an instance of QRenderTargetSelector.
[protected]
QRenderTargetSelector::
QRenderTargetSelector
(
QRenderTargetSelectorPrivate
&
dd
,
Qt3DCore::QNode
*
parent
= nullptr)
Copy constructor.
Returns the list of draw buffers for the current Qt3DRender::QRenderTargetSelector 實例。
另請參閱 setOutputs ().
Sets the draw buffers to be used. The draw buffers should be matching the Qt3DRender::QRenderTargetOutput::AttachmentPoint defined in the attachments of the Qt3DRender::QRenderTarget associated to the Qt3DRender::QRenderTargetSelector 實例。
注意: At render time, if no draw buffer has been specified, the renderer will default to using all the attachments' draw buffers.
另請參閱 outputs ().