| 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_QRENDERTARGET_H |
| 5 | #define QT3DRENDER_QRENDERTARGET_H |
| 6 | |
| 7 | #include <Qt3DCore/qcomponent.h> |
| 8 | #include <Qt3DRender/qt3drender_global.h> |
| 9 | |
| 10 | QT_BEGIN_NAMESPACE |
| 11 | |
| 12 | namespace Qt3DRender { |
| 13 | |
| 14 | class QRenderTargetPrivate; |
| 15 | class QRenderTargetOutput; |
| 16 | |
| 17 | class Q_3DRENDERSHARED_EXPORT QRenderTarget : public Qt3DCore::QComponent |
| 18 | { |
| 19 | Q_OBJECT |
| 20 | public: |
| 21 | explicit QRenderTarget(Qt3DCore::QNode *parent = nullptr); |
| 22 | ~QRenderTarget(); |
| 23 | |
| 24 | void addOutput(QRenderTargetOutput *output); |
| 25 | void removeOutput(QRenderTargetOutput *output); |
| 26 | QList<QRenderTargetOutput *> outputs() const; |
| 27 | |
| 28 | protected: |
| 29 | explicit QRenderTarget(QRenderTargetPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
| 30 | |
| 31 | private: |
| 32 | Q_DECLARE_PRIVATE(QRenderTarget) |
| 33 | }; |
| 34 | |
| 35 | } // namespace Qt3DRender |
| 36 | |
| 37 | QT_END_NAMESPACE |
| 38 | |
| 39 | #endif // QT3DRENDER_QRENDERTARGET_H |
| 40 | |