1// Copyright (C) 2020 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#ifndef QT3DLOGIC_LOGIC_EXECUTOR_P_H
4#define QT3DLOGIC_LOGIC_EXECUTOR_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists for the convenience
11// of other Qt classes. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <QtCore/qobject.h>
18#include <QtCore/qcoreevent.h>
19#include <Qt3DCore/qnodeid.h>
20#include <private/qglobal_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QSemaphore;
25
26namespace Qt3DCore {
27class QScene;
28}
29
30namespace Qt3DLogic {
31namespace Logic {
32
33class Executor : public QObject
34{
35 Q_OBJECT
36public:
37 explicit Executor(QObject *parent = 0);
38
39 void setScene(Qt3DCore::QScene *scene) { m_scene = scene; }
40
41public Q_SLOTS:
42 void processLogicFrameUpdates(const QList<Qt3DCore::QNodeId> &nodeIds, float dt);
43
44private:
45 Qt3DCore::QScene *m_scene;
46};
47
48} // namespace Logic
49} // namespace Qt3DLogic
50
51QT_END_NAMESPACE
52
53#endif // QT3DLOGIC_LOGIC_EXECUTOR_P_H
54

source code of qt3d/src/logic/executor_p.h