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
10QT_BEGIN_NAMESPACE
11
12namespace Qt3DRender {
13
14class QRenderTargetPrivate;
15class QRenderTargetOutput;
16
17class Q_3DRENDERSHARED_EXPORT QRenderTarget : public Qt3DCore::QComponent
18{
19 Q_OBJECT
20public:
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
28protected:
29 explicit QRenderTarget(QRenderTargetPrivate &dd, Qt3DCore::QNode *parent = nullptr);
30
31private:
32 Q_DECLARE_PRIVATE(QRenderTarget)
33};
34
35} // namespace Qt3DRender
36
37QT_END_NAMESPACE
38
39#endif // QT3DRENDER_QRENDERTARGET_H
40

source code of qt3d/src/render/frontend/qrendertarget.h