| 1 |
// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB). |
| 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 Material material: null |
| 11 |
property alias meshSource: mesh.source |
| 12 |
property alias translation: transform.translation |
| 13 |
property alias rotation: transform.rotation |
| 14 |
property alias scale: transform.scale |
| 15 |
|
| 16 |
components: [ transform, mesh, material ] |
| 17 |
|
| 18 |
Transform { |
| 19 |
id: transform |
| 20 |
} |
| 21 |
|
| 22 |
Mesh { |
| 23 |
id: mesh |
| 24 |
} |
| 25 |
} |