Debian Codegraph @

tests/manual/tessellation-modes/TessellatedQuad.qml

raw
1 // Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 import QtQuick 2.1 as QQ2
5 import Qt3D.Core 2.0
6 import Qt3D.Render 2.0
7 import Qt3D.Examples 1.0
8
9 Entity {
10 id: root
11
12 property real x: 0.0
13 property real y: 0.0
14 property real z: 0.0
15 property real scale: 1.0
16 property real theta: 0.0
17 property Material material
18
19 components: [ transform, mesh, root.material ]
20
21 Transform {
22 id: transform
23 translation: Qt.vector3d(root.x, root.y, root.z)
24 rotation: fromAxisAndAngle(Qt.vector3d(0, 1, 0), root.theta)
25 scale: root.scale
26 }
27
28 TessellatedQuadMesh {
29 id: mesh
30 }
31 }