Debian Codegraph @

tests/manual/lod/CylinderEntity.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.4 as QQ2
5 import Qt3D.Core 2.0
6 import Qt3D.Render 2.0
7 import Qt3D.Extras 2.0
8
9 Entity {
10 components: [ mesh, phongMaterial, transform ]
11
12 CylinderMesh {
13 id: mesh
14 radius: 1
15 length: 3
16 }
17
18 PhongMaterial {
19 id: phongMaterial
20 diffuse: "green"
21 }
22
23 Transform {
24 id: transform
25 scale: 4
26 }
27 }