diff options
author | Mike Krus <mike.krus@kdab.com> | 2020-07-30 12:03:46 +0100 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2020-07-30 13:51:37 +0100 |
commit | 174cd487b4644a69853de9007b90cba989afe344 (patch) | |
tree | 03e331f2b0a51ec2c6518d352c4b7a759edebbed /tests/manual/loader-qml/CuboidEntity.qml | |
parent | eb728b5501f0ffb61ca4916ff5975c496ab98970 (diff) |
Make sample meshes geometry renderers again
Introduce new geometry view class for each.
Change-Id: I8e9a8f3a078d4cc63f9656ae8142e39f05d755c7
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests/manual/loader-qml/CuboidEntity.qml')
-rw-r--r-- | tests/manual/loader-qml/CuboidEntity.qml | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/manual/loader-qml/CuboidEntity.qml b/tests/manual/loader-qml/CuboidEntity.qml index 580daa94b..d9b33c511 100644 --- a/tests/manual/loader-qml/CuboidEntity.qml +++ b/tests/manual/loader-qml/CuboidEntity.qml @@ -56,13 +56,11 @@ import Qt3D.Extras 2.0 Entity { components: [ mesh, phongMaterial, transform ] - GeometryRenderer { + CuboidMesh { id: mesh - view: CuboidMesh { - yzMeshResolution: Qt.size(2, 2) - xzMeshResolution: Qt.size(2, 2) - xyMeshResolution: Qt.size(2, 2) - } + yzMeshResolution: Qt.size(2, 2) + xzMeshResolution: Qt.size(2, 2) + xyMeshResolution: Qt.size(2, 2) } GoochMaterial { |