summaryrefslogtreecommitdiffstats
path: root/doc/src/tutorials/simpleobject.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/tutorials/simpleobject.qdoc')
-rw-r--r--doc/src/tutorials/simpleobject.qdoc23
1 files changed, 14 insertions, 9 deletions
diff --git a/doc/src/tutorials/simpleobject.qdoc b/doc/src/tutorials/simpleobject.qdoc
index 07f14c788..42e6b06ce 100644
--- a/doc/src/tutorials/simpleobject.qdoc
+++ b/doc/src/tutorials/simpleobject.qdoc
@@ -26,13 +26,24 @@
****************************************************************************/
/*!
- \title Applying transformations and materials to objects
+ \title Applying Transformations and Materials
+ \keyword Object Effects
\example tutorials/cube4
In this tutorial we will apply transformations and materials to a
simple cube object to demonstrate how to modify the QGLPainter
- state to achieve different effects. We start by declaring a
- view class to show our cube on the screen:
+ state to achieve different effects.
+
+ \section2 Cube in QtQuick3D
+
+ It is quite simple to achieve these effects in QtQuick3D:
+
+ \snippet tutorials/cube4/cube.qml 1
+
+ \section2 Cube in Qt3D
+
+ In the C++ world we start by declaring a view class to show our cube
+ on the screen:
\snippet tutorials/cube1/cubeview.h 1
@@ -91,11 +102,5 @@
\image tutorials/cube4-screenshot.png
- \section2 Cube in QML/3D
-
- It is quite simple to achieve the same effect in QML:
-
- \snippet tutorials/cube4/cube.qml 1
-
\l{qt3d-examples.html}{Return to the main Tutorials page}.
*/