summaryrefslogtreecommitdiffstats
path: root/tests/manual/dynamicscene-cpp/examplescene.h
blob: 4cafb1492fb29f594f2378497f484617cc006f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef EXAMPLESCENE_H
#define EXAMPLESCENE_H

#include <Qt3DCore/QEntity>

class BoxEntity;

QT_BEGIN_NAMESPACE
class QTimer;
QT_END_NAMESPACE

class ExampleScene : public Qt3DCore::QEntity
{
    Q_OBJECT

public:
    explicit ExampleScene(Qt3DCore::QNode *parent = 0);
    ~ExampleScene();

private Q_SLOTS:
    void updateScene();
    void buildScene();

private:
    QList<BoxEntity *> m_entities;
    QTimer *m_timer;
    bool m_even;
};

#endif // EXAMPLESCENE_H