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_RENDER_RENDERTARGETOUTPUT_H
5#define QT3DRENDER_RENDER_RENDERTARGETOUTPUT_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <Qt3DRender/private/backendnode_p.h>
19#include <Qt3DRender/qrendertargetoutput.h>
20#include <Qt3DRender/private/attachmentpack_p.h>
21
22QT_BEGIN_NAMESPACE
23
24namespace Qt3DRender {
25
26class QRenderTargetOutput;
27
28namespace Render {
29
30class AttachmentManager;
31
32class Q_3DRENDERSHARED_PRIVATE_EXPORT RenderTargetOutput : public BackendNode
33{
34public:
35 RenderTargetOutput();
36
37 Qt3DCore::QNodeId textureUuid() const;
38 int mipLevel() const;
39 int layer() const;
40 QString name() const;
41 QAbstractTexture::CubeMapFace face() const;
42 QRenderTargetOutput::AttachmentPoint point() const;
43 void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override;
44 Attachment *attachment();
45 const Attachment *attachment() const;
46
47private:
48 Qt3DCore::QNodeId m_attachmentUuid;
49 Attachment m_attachmentData;
50};
51
52} // namespace Render
53
54} // namespace Qt3DRender
55
56QT_END_NAMESPACE
57
58#endif // QT3DRENDER_RENDER_RENDERTARGETOUTPUT_H
59

source code of qt3d/src/render/backend/rendertargetoutput_p.h