aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2023-05-30 11:52:37 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2023-06-01 11:27:56 +0200
commitb62efbe1afbec0eada19eeb66e55f68e2d129e36 (patch)
tree46c8b686ab7c5fd249d19a8574439d3d84b9713a /examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake
parent6bdc58c2dbeffe723e4d6ae878ad380e118104ca (diff)
Add the rhitextureitem example
fboitem, the OpenGL-based QQuickFramebufferObject example is now gone, replaced by the rhitextureitem example. It is now possible to implement a custom QQuickItem that renders into a QRhiTexture and then draws a triangle/strip geometry textured with that texture using just public Qt Quick APIs and the semi-public QRhi APIs. There should be conveniences provided for this in future Qt versions, but for the time being we provide an example how applications can do this in Qt 6.6 already. This complements the rhiunderqml example which shows the underlay/overlay approach, and the customrendernode example that shows the "inline" approach with a custom QSGRenderNode. The rhitextureitem example added here shows the third, "offscreen" approach that goes through a texture. The example docs are better than before but not yet complete. To be extended separately. Task-number: QTBUG-113331 Change-Id: I83000c08b057dd72371e2909905120dc496cb34d Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake')
-rw-r--r--examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/checker.frag.qsbbin0 -> 1611 bytes
-rw-r--r--examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/logo.frag.qsbbin0 -> 772 bytes
-rw-r--r--examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/logo.vert.qsbbin0 -> 1738 bytes
3 files changed, 0 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/checker.frag.qsb b/examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/checker.frag.qsb
new file mode 100644
index 0000000000..31ad25de20
--- /dev/null
+++ b/examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/checker.frag.qsb
Binary files differ
diff --git a/examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/logo.frag.qsb b/examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/logo.frag.qsb
new file mode 100644
index 0000000000..9a9cbaa82d
--- /dev/null
+++ b/examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/logo.frag.qsb
Binary files differ
diff --git a/examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/logo.vert.qsb b/examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/logo.vert.qsb
new file mode 100644
index 0000000000..8626401364
--- /dev/null
+++ b/examples/quick/scenegraph/rhitextureitem/prebuilts_for_qmake/logo.vert.qsb
Binary files differ