1 | // Copyright (C) 2017 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_BLITFRAMEBUFFER_P_H |
5 | #define QT3DRENDER_RENDER_BLITFRAMEBUFFER_P_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/qblitframebuffer_p.h> |
19 | #include <Qt3DRender/private/framegraphnode_p.h> |
20 | |
21 | QT_BEGIN_NAMESPACE |
22 | |
23 | namespace Qt3DRender { |
24 | |
25 | namespace Render { |
26 | |
27 | class Q_3DRENDERSHARED_PRIVATE_EXPORT BlitFramebuffer : public FrameGraphNode |
28 | { |
29 | public: |
30 | BlitFramebuffer(); |
31 | |
32 | void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override; |
33 | |
34 | Qt3DCore::QNodeId sourceRenderTargetId() const; |
35 | |
36 | Qt3DCore::QNodeId destinationRenderTargetId() const; |
37 | |
38 | QRect sourceRect() const; |
39 | |
40 | QRect destinationRect() const; |
41 | |
42 | Qt3DRender::QRenderTargetOutput::AttachmentPoint sourceAttachmentPoint() const; |
43 | |
44 | Qt3DRender::QRenderTargetOutput::AttachmentPoint destinationAttachmentPoint() const; |
45 | |
46 | QBlitFramebuffer::InterpolationMethod interpolationMethod() const; |
47 | |
48 | private: |
49 | Qt3DCore::QNodeId m_sourceRenderTargetId; |
50 | Qt3DCore::QNodeId m_destinationRenderTargetId; |
51 | QRect m_sourceRect; |
52 | QRect m_destinationRect; |
53 | Qt3DRender::QRenderTargetOutput::AttachmentPoint m_sourceAttachmentPoint; |
54 | Qt3DRender::QRenderTargetOutput::AttachmentPoint m_destinationAttachmentPoint; |
55 | QBlitFramebuffer::InterpolationMethod m_interpolationMethod; |
56 | }; |
57 | |
58 | } // namespace Render |
59 | |
60 | } // namespace Qt3DRender |
61 | |
62 | QT_END_NAMESPACE |
63 | |
64 | #endif // QT3DRENDER_RENDER_BLITFRAMEBUFFER_H |
65 |