| 1 |
// Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies). |
| 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 |
|
| 10 |
property vector3d position: Qt.vector3d(0, 0, 0) |
| 11 |
property real angleX: 0 |
| 12 |
property real angleY: 0 |
| 13 |
property real angleZ: 0 |
| 14 |
property real scale: 1 |
| 15 |
|
| 16 |
components: [ |
| 17 |
Transform { |
| 18 |
translation: root.position |
| 19 |
rotation: fromEulerAngles(root.angleX, root.angleY, root.angleZ) |
| 20 |
scale: root.scale |
| 21 |
}, |
| 22 |
SceneLoader { |
| 23 |
source: "qrc:/assets/gltf/wine/wine.gltf" |
| 24 |
} |
| 25 |
] |
| 26 |
} |