Debian Codegraph @

tests/benchmarks/Qt3DBench/SphereElement.qml

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 import Qt3D.Core 2.0
5 import Qt3D.Render 2.0
6
7 Entity {
8 id: root
9 property real xPos: 0
10 property real yPos: 0
11 property real zPos: 0
12 property Material material
13
14 SphereMesh {
15 id: sphereMesh
16 rings: 15
17 slices: 16
18 radius: 0.5
19 }
20
21 Transform {
22 id: sphereTransform
23 Translate {
24 dx: xPos
25 dy: yPos
26 dz: zPos
27 }
28 }
29
30 components: [
31 sphereMesh,
32 sphereTransform,
33 material
34 ]
35 }