Debian Codegraph @

tests/manual/texture-updates-cpp/scene.h

raw symbols SCIP
1 // Copyright (C) 2019 Klaralvdalens Datakonsult AB (KDAB).
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 #ifndef SCENE_H
5 #define SCENE_H
6
7 #include <QtCore/QObject>
8
9 #include <Qt3DCore/QEntity>
10 #include <Qt3DCore/QTransform>
11 #include <Qt3DRender/QTexture>
12
13 class Scene : public QObject
14 {
15 Q_OBJECT
16
17 public:
18 explicit Scene(Qt3DCore::QEntity *rootEntity);
19 ~Scene();
20
21 void run();
22
23 private Q_SLOTS:
24 void updateTimer();
25
26 private:
27 Qt3DCore::QEntity *m_rootEntity;
28
29 Qt3DCore::QEntity *m_cuboidEntity;
30 Qt3DCore::QTransform *m_transform;
31 Qt3DRender::QTexture2D *m_texture;
32
33 float m_angle = 0;
34 };
35
36 #endif // SCENE_H
37