summaryrefslogtreecommitdiffstats
path: root/src/runtimerender/Qt3DSRenderer.h
diff options
context:
space:
mode:
authorJere Tuliniemi <jere.tuliniemi@qt.io>2019-09-25 15:35:59 +0300
committerJere Tuliniemi <jere.tuliniemi@qt.io>2019-09-30 10:09:36 +0300
commitd562409eb14f00567f7495c24c502e6b7aeb0cb0 (patch)
treee034590dfebbf0a446d52b814a05007f0b5b7723 /src/runtimerender/Qt3DSRenderer.h
parent52f3ec01c0f9e7170dd375de688541baf353bf81 (diff)
Provide texture ids through the C++ API
Image, subpresentation and layer texture ids are now provided by the presentation via an element path. The cached layer texture id is also stabilized. Instead recreating it every frame, the last effect is just rendered to the premade texture. For each intermediate effect, a new texture is still created. Task-number: QT3DS-3959 Change-Id: I2ad2b81be9ae61373a0bfd963501823f012e9fcc Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/runtimerender/Qt3DSRenderer.h')
-rw-r--r--src/runtimerender/Qt3DSRenderer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtimerender/Qt3DSRenderer.h b/src/runtimerender/Qt3DSRenderer.h
index fb6c3de..392fb62 100644
--- a/src/runtimerender/Qt3DSRenderer.h
+++ b/src/runtimerender/Qt3DSRenderer.h
@@ -167,6 +167,8 @@ namespace render {
const QT3DSVec3 &inMouseVec) const = 0;
virtual QT3DSVec3 ProjectPosition(SNode &inNode, const QT3DSVec3 &inPosition) const = 0;
+ virtual uint getLayerTextureId(SLayer &layer) = 0;
+
// Roughly equivalent of gluPickMatrix, allows users to setup a perspective transform that
// will draw some sub component
// of the layer. Used in combination with an expected viewport of 0,0,width,height the