| 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 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | class QSemaphore; |
| 25 | |
| 26 | namespace Qt3DCore { |
| 27 | class QScene; |
| 28 | } |
| 29 | |
| 30 | namespace Qt3DLogic { |
| 31 | namespace Logic { |
| 32 | |
| 33 | class Executor : public QObject |
| 34 | { |
| 35 | Q_OBJECT |
| 36 | public: |
| 37 | explicit Executor(QObject *parent = 0); |
| 38 | |
| 39 | void setScene(Qt3DCore::QScene *scene) { m_scene = scene; } |
| 40 | |
| 41 | public Q_SLOTS: |
| 42 | void processLogicFrameUpdates(const QList<Qt3DCore::QNodeId> &nodeIds, float dt); |
| 43 | |
| 44 | private: |
| 45 | Qt3DCore::QScene *m_scene; |
| 46 | }; |
| 47 | |
| 48 | } // namespace Logic |
| 49 | } // namespace Qt3DLogic |
| 50 | |
| 51 | QT_END_NAMESPACE |
| 52 | |
| 53 | #endif // QT3DLOGIC_LOGIC_EXECUTOR_P_H |
| 54 | |