summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/simple-qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/simple-qml/main.qml')
-rw-r--r--examples/qt3d/simple-qml/main.qml11
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/qt3d/simple-qml/main.qml b/examples/qt3d/simple-qml/main.qml
index 3fe4a7ae3..c86be8d2d 100644
--- a/examples/qt3d/simple-qml/main.qml
+++ b/examples/qt3d/simple-qml/main.qml
@@ -2,14 +2,16 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick 2.2 as QQ2
+//! [0]
import Qt3D.Core 2.0
import Qt3D.Render 2.0
+//! [0]
import Qt3D.Input 2.0
import Qt3D.Extras 2.15
Entity {
id: sceneRoot
-
+ //! [1]
Camera {
id: camera
projectionType: CameraLens.PerspectiveProjection
@@ -21,11 +23,11 @@ Entity {
upVector: Qt.vector3d( 0.0, 1.0, 0.0 )
viewCenter: Qt.vector3d( 0.0, 0.0, 0.0 )
}
-
+ //! [1]
OrbitCameraController {
camera: camera
}
-
+ //! [2]
components: [
RenderSettings {
activeFrameGraph: ForwardRenderer {
@@ -35,8 +37,11 @@ Entity {
}
},
// Event Source will be set by the Qt3DQuickWindow
+ //! [3]
InputSettings { }
+ //! [3]
]
+ //! [2]
PhongMaterial {
id: material