| 1 | // Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB). |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef EXAMPLESCENE_H |
| 5 | #define EXAMPLESCENE_H |
| 6 | |
| 7 | #include <Qt3DCore/QEntity> |
| 8 | |
| 9 | class BoxEntity; |
| 10 | |
| 11 | QT_BEGIN_NAMESPACE |
| 12 | class QTimer; |
| 13 | QT_END_NAMESPACE |
| 14 | |
| 15 | class ExampleScene : public Qt3DCore::QEntity |
| 16 | { |
| 17 | Q_OBJECT |
| 18 | |
| 19 | public: |
| 20 | explicit ExampleScene(Qt3DCore::QNode *parent = 0); |
| 21 | ~ExampleScene(); |
| 22 | |
| 23 | private Q_SLOTS: |
| 24 | void updateScene(); |
| 25 | void buildScene(); |
| 26 | |
| 27 | private: |
| 28 | QList<BoxEntity *> m_entities; |
| 29 | QTimer *m_timer; |
| 30 | bool m_even; |
| 31 | }; |
| 32 | |
| 33 | #endif // EXAMPLESCENE_H |