1// Copyright (C) 2017 Juan José Casafranca
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_SENDBUFFERCAPTUREJOB_P_H
5#define QT3DRENDER_SENDBUFFERCAPTUREJOB_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 <Qt3DCore/qaspectjob.h>
19#include <Qt3DCore/qnodeid.h>
20#include <Qt3DRender/qt3drender_global.h>
21#include <Qt3DRender/private/qt3drender_global_p.h>
22#include <QMutex>
23
24
25QT_BEGIN_NAMESPACE
26
27namespace Qt3DRender {
28
29namespace Render {
30
31class NodeManagers;
32class Entity;
33class Renderer;
34class Buffer;
35class SendBufferCaptureJobPrivate;
36
37class Q_3DRENDERSHARED_PRIVATE_EXPORT SendBufferCaptureJob : public Qt3DCore::QAspectJob
38{
39public:
40 explicit SendBufferCaptureJob();
41 ~SendBufferCaptureJob();
42
43 void setManagers(NodeManagers *nodeManagers) { m_nodeManagers = nodeManagers; }
44 void addRequest(QPair<Qt3DCore::QNodeId, QByteArray> request);
45 bool hasRequests() const;
46
47 void run() final;
48
49private:
50 Q_DECLARE_PRIVATE(SendBufferCaptureJob)
51 NodeManagers *m_nodeManagers;
52};
53
54typedef QSharedPointer<SendBufferCaptureJob> SendBufferCaptureJobPtr;
55
56} //Render
57
58} //Qt3DRender
59
60QT_END_NAMESPACE
61
62
63#endif // QT3DRENDER_SENDBUFFERCAPTUREJOB_P_H
64

source code of qt3d/src/render/jobs/sendbuffercapturejob_p.h