summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/qardboard/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/qardboard/main.qml')
-rw-r--r--examples/qt3d/qardboard/main.qml24
1 files changed, 14 insertions, 10 deletions
diff --git a/examples/qt3d/qardboard/main.qml b/examples/qt3d/qardboard/main.qml
index b273c0f57..906b43232 100644
--- a/examples/qt3d/qardboard/main.qml
+++ b/examples/qt3d/qardboard/main.qml
@@ -122,11 +122,13 @@ QardboardRootEntity {
// Cylinder
Entity {
- property CylinderMesh cylinder: CylinderMesh {
- radius: 1
- length: 3
- rings: 100
- slices: 20
+ property GeometryRenderer cylinder: GeometryRenderer {
+ view: CylinderMesh {
+ radius: 1
+ length: 3
+ rings: 100
+ slices: 20
+ }
}
property Transform transform: Transform {
id: cylinderTransform
@@ -180,11 +182,13 @@ QardboardRootEntity {
readonly property real det: 1.0 / model
delegate: Entity {
components: [
- TorusMesh {
- radius: 35
- minorRadius: 5
- rings: 100
- slices: 20
+ GeometryRenderer {
+ view: TorusMesh {
+ radius: 35
+ minorRadius: 5
+ rings: 100
+ slices: 20
+ }
},
Transform {
id: transform