summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/materials
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2015-11-11 11:29:15 +0000
committerPaul Lemire <paul.lemire@kdab.com>2015-11-20 16:34:14 +0000
commitba3e89e4b609d19b0607d2cb1cdf13b83f6cd984 (patch)
tree017a00ab9308fc635e59bc050c00a32207079587 /examples/qt3d/materials
parent3d1727dc60e9c9a72160e785243a7be7a68fc60e (diff)
Adapt examples to use no args form of Qt.matrix4x4()
Change-Id: If289d74601e2244d4175ba6b1ea3eb95df0bd50b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/materials')
-rw-r--r--examples/qt3d/materials/TrefoilKnot.qml5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/qt3d/materials/TrefoilKnot.qml b/examples/qt3d/materials/TrefoilKnot.qml
index 9440d7a85..26894f17c 100644
--- a/examples/qt3d/materials/TrefoilKnot.qml
+++ b/examples/qt3d/materials/TrefoilKnot.qml
@@ -53,10 +53,7 @@ Entity {
Transform {
id: transform
matrix: {
- var m = Qt.matrix4x4(1, 0, 0, 0,
- 0, 1, 0, 0,
- 0, 0, 1, 0,
- 0, 0, 0, 1);
+ var m = Qt.matrix4x4();
m.translate(Qt.vector3d(root.x, root.y, root.z));
m.rotate(phi, Qt.vector3d(0, 1, 0));
m.rotate(theta, Qt.vector3d(1, 0, 0));