summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/simple-qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/simple-qml/main.qml')
-rw-r--r--examples/qt3d/simple-qml/main.qml19
1 files changed, 12 insertions, 7 deletions
diff --git a/examples/qt3d/simple-qml/main.qml b/examples/qt3d/simple-qml/main.qml
index 9f4149202..60b9a0990 100644
--- a/examples/qt3d/simple-qml/main.qml
+++ b/examples/qt3d/simple-qml/main.qml
@@ -89,14 +89,17 @@ Entity {
id: material
}
- TorusMesh {
+ GeometryRenderer {
id: torusMesh
- radius: 5
- minorRadius: 1
- rings: 100
- slices: 20
+ view: TorusMesh {
+ radius: 5
+ minorRadius: 1
+ rings: 100
+ slices: 20
+ }
}
+
Transform {
id: torusTransform
scale3D: Qt.vector3d(1.5, 1, 0.5)
@@ -108,9 +111,11 @@ Entity {
components: [ torusMesh, material, torusTransform ]
}
- SphereMesh {
+ GeometryRenderer {
id: sphereMesh
- radius: 3
+ view: SphereMesh {
+ radius: 3
+ }
}
Transform {