summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/scene2d
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/scene2d')
-rw-r--r--examples/qt3d/scene2d/doc/src/scene2d.qdoc10
-rw-r--r--examples/qt3d/scene2d/main.qml3
2 files changed, 7 insertions, 6 deletions
diff --git a/examples/qt3d/scene2d/doc/src/scene2d.qdoc b/examples/qt3d/scene2d/doc/src/scene2d.qdoc
index fd8a5b825..aad80053e 100644
--- a/examples/qt3d/scene2d/doc/src/scene2d.qdoc
+++ b/examples/qt3d/scene2d/doc/src/scene2d.qdoc
@@ -74,11 +74,11 @@
\section1 Rendering Qt Quick into a Texture
We begin by declaring the Entity that will become our control panel. It consists of
- a CuboidMesh onto which we will place the texture containing a rendering of the Qt Quick
- scene. In this case we are using a simple cube for the geometry, but we could use
- any valid 3D geometry as long as it has texture coordinates. The texture coordinates
- are used for projecting the texture onto the 3D surface, and also for calculating the
- coordinates of mouse events to be passed to the originating Qt Quick scene.
+ a GeometryRenderer with a CuboidMesh view onto which we will place the texture containing
+ a rendering of the Qt Quick scene. In this case we are using a simple cube for the
+ geometry, but we could use any valid 3D geometry as long as it has texture coordinates.
+ The texture coordinates are used for projecting the texture onto the 3D surface, and also
+ for calculating the coordinates of mouse events to be passed to the originating Qt Quick scene.
\skipto Entity {
\printto Behavior
diff --git a/examples/qt3d/scene2d/main.qml b/examples/qt3d/scene2d/main.qml
index ceaac3b34..671ab3990 100644
--- a/examples/qt3d/scene2d/main.qml
+++ b/examples/qt3d/scene2d/main.qml
@@ -137,8 +137,9 @@ Entity {
rotation: fromAxisAndAngle(Qt.vector3d(0,1,0), cube.rotationAngle)
}
- CuboidMesh {
+ GeometryRenderer {
id: cubeMesh
+ view: CuboidMesh { }
}
ObjectPicker {