1// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QT3DRENDER_QRENDERTARGETSELECTOR_H
5#define QT3DRENDER_QRENDERTARGETSELECTOR_H
6
7#include <Qt3DRender/qt3drender_global.h>
8#include <Qt3DCore/qnode.h>
9#include <Qt3DRender/qframegraphnode.h>
10#include <Qt3DRender/qrendertargetoutput.h>
11#include <Qt3DRender/qrendertarget.h>
12
13QT_BEGIN_NAMESPACE
14
15namespace Qt3DRender {
16
17class QRenderTargetSelectorPrivate;
18
19class Q_3DRENDERSHARED_EXPORT QRenderTargetSelector : public QFrameGraphNode
20{
21 Q_OBJECT
22 Q_PROPERTY(Qt3DRender::QRenderTarget *target READ target WRITE setTarget NOTIFY targetChanged)
23public:
24 explicit QRenderTargetSelector(Qt3DCore::QNode *parent = nullptr);
25 ~QRenderTargetSelector();
26
27 QRenderTarget *target() const;
28
29public Q_SLOTS:
30 void setTarget(QRenderTarget *target);
31
32Q_SIGNALS:
33 void targetChanged(QRenderTarget *target);
34
35protected:
36 explicit QRenderTargetSelector(QRenderTargetSelectorPrivate &dd, Qt3DCore::QNode *parent = nullptr);
37
38private:
39 Q_DECLARE_PRIVATE(QRenderTargetSelector)
40};
41
42} // namespace Qt3DRender
43
44QT_END_NAMESPACE
45
46Q_DECLARE_METATYPE(QList<Qt3DRender::QRenderTargetOutput::AttachmentPoint>) // LCOV_EXCL_LINE
47
48#endif // QT3DRENDER_QRENDERTARGETSELECTOR_H
49

source code of qt3d/src/render/framegraph/qrendertargetselector.h