| 1 |
// Copyright (C) 2016 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
import QtQuick 2.0 |
| 5 |
import QtQuick.Scene3D 2.0 |
| 6 |
|
| 7 |
Item { |
| 8 |
id: mainview |
| 9 |
width: 1280 |
| 10 |
height: 768 |
| 11 |
visible: true |
| 12 |
|
| 13 |
Rectangle { |
| 14 |
anchors.fill: parent |
| 15 |
color: "white" |
| 16 |
|
| 17 |
Scene3D { |
| 18 |
anchors.fill: parent |
| 19 |
focus: true |
| 20 |
aspects: "input" |
| 21 |
|
| 22 |
SphereView { |
| 23 |
id: sphereView |
| 24 |
} |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
property int frames: 0 |
| 29 |
|
| 30 |
Timer { |
| 31 |
interval: 1000 |
| 32 |
repeat: true |
| 33 |
running: true |
| 34 |
onTriggered: { |
| 35 |
console.log("Frames done :" + frames) |
| 36 |
frames = 0 |
| 37 |
} |
| 38 |
onRunningChanged: frames = 0 |
| 39 |
} |
| 40 |
} |