Debian Codegraph @

tests/manual/paintedtexture-cpp/scene.h

raw symbols SCIP
1 // Copyright (C) 2016 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/QPaintedTextureImage>
12
13 class Scene : public QObject
14 {
15 Q_OBJECT
16
17 public:
18 explicit Scene(Qt3DCore::QEntity *rootEntity);
19 ~Scene();
20
21 public Q_SLOTS:
22 void redrawTexture();
23 void setSize(QSize size);
24
25 private Q_SLOTS:
26 void updateTimer();
27
28 private:
29 Qt3DCore::QEntity *m_rootEntity;
30
31 Qt3DCore::QEntity *m_cuboidEntity;
32 Qt3DCore::QTransform *m_transform;
33 Qt3DRender::QPaintedTextureImage *m_paintedTextureImage;
34
35 float m_angle = 0;
36 };
37
38 #endif // SCENE_H
39