QRenderTargetSelector Class
(Qt3DRender::QRenderTargetSelector)Provides a way of specifying a render target. More...
Header: | #include <QRenderTargetSelector> |
qmake: | QT += 3drender |
Since: | Qt 5.7 |
Instantiated By: | RenderTargetSelector |
Inherits: | Qt3DRender::QFrameGraphNode |
This class was introduced in Qt 5.7.
Properties
- target : Qt3DRender::QRenderTarget*
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
QRenderTargetSelector(Qt3DCore::QNode *parent = nullptr) | |
QVector<QRenderTargetOutput::AttachmentPoint> | outputs() const |
void | setOutputs(const QVector<QRenderTargetOutput::AttachmentPoint> &buffers) |
Qt3DRender::QRenderTarget * | target() const |
- 1 public function inherited from Qt3DRender::QFrameGraphNode
- 13 public functions inherited from Qt3DCore::QNode
- 30 public functions inherited from QObject
Public Slots
void | setTarget(Qt3DRender::QRenderTarget *target) |
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
void | targetChanged(Qt3DRender::QRenderTarget *target) |
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Related Non-Members
typedef | QNodePtr |
typedef | QNodeVector |
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
Qt3DCore::QNodeId | qIdForNode(Qt3DCore::QNode *node) |
Qt3DCore::QNodeIdVector | qIdsForNodes(const T &nodes) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 9 static public members inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Detailed Description
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.
Property Documentation
target : Qt3DRender::QRenderTarget*
Holds the current render target
Access functions:
Qt3DRender::QRenderTarget * | target() const |
void | setTarget(Qt3DRender::QRenderTarget *target) |
Notifier signal:
void | targetChanged(Qt3DRender::QRenderTarget *target) |
Member Function Documentation
QRenderTargetSelector::QRenderTargetSelector(Qt3DCore::QNode *parent = nullptr)
Constructs QRenderTargetSelector with given parent.
QVector<QRenderTargetOutput::AttachmentPoint> QRenderTargetSelector::outputs() const
Returns the list of draw buffers for the current Qt3DRender::QRenderTargetSelector instance.
See also setOutputs().
void QRenderTargetSelector::setOutputs(const QVector<QRenderTargetOutput::AttachmentPoint> &buffers)
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 instance.
Note: At render time, if no draw buffer has been specified, the renderer will default to using all the attachments' draw buffers.
See also outputs().