diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-08-04 16:10:37 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-08-07 09:26:16 +0000 |
commit | 03811c1729cf5ddec63ce3e288bf132abcc40c27 (patch) | |
tree | 74537fdbc2ddd26b5b3753858a04fd561b79577f /examples/qt3d/scene3d | |
parent | 41ecc6360b96569fc500a46593b804082af1d1f7 (diff) |
Add a property to Scene3D to control multisampling
Change-Id: I94ad9870a819af165fbbeae3a51db05c043d40ca
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/qt3d/scene3d')
-rw-r--r-- | examples/qt3d/scene3d/main.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/qt3d/scene3d/main.qml b/examples/qt3d/scene3d/main.qml index bed04161e..6419309a8 100644 --- a/examples/qt3d/scene3d/main.qml +++ b/examples/qt3d/scene3d/main.qml @@ -50,6 +50,18 @@ Item { } } + Text { + text: "Multisample: " + scene3d.multisample + anchors.bottom: parent.bottom + anchors.bottomMargin: 10 + anchors.horizontalCenter: parent.horizontalCenter + + MouseArea { + anchors.fill: parent + onClicked: scene3d.multisample = !scene3d.multisample + } + } + Rectangle { id: scene width: Math.min(parent.width, parent.height) - 100 @@ -67,6 +79,7 @@ Item { } Scene3D { + id: scene3d anchors.fill: parent anchors.margins: 10 focus: true |