summaryrefslogtreecommitdiffstats
path: root/src/runtime/Qt3DSIScriptBridge.h
diff options
context:
space:
mode:
authorJere Tuliniemi <jere.tuliniemi@qt.io>2019-09-10 11:00:57 +0300
committerJere Tuliniemi <jere.tuliniemi@qt.io>2019-09-17 12:35:55 +0300
commitfe29ee5c5b0c1edbfabccf211bd8d73bb61672dc (patch)
tree21fb79747816ff315ed0f5526321bea2e616b326 /src/runtime/Qt3DSIScriptBridge.h
parentef8b07e32a9ecc8375c1031ba5c7119ac75b81f0 (diff)
Support QQuickImageProvider in the runtime
With QQuickImageProvider the user can make a callback method returning a custom QPixmap or QImage to the engine without accessing the filesystem. Texture sourcepaths are set using an image url scheme. For example "image://colors/blue" where "image://" tells the runtime to look for an image provider, "colors" is the image provider id and rest are the image id the provider uses to create the image. Task-number: QT3DS-3761 Change-Id: I830649359f9969e957a972a0c08d0ede6e46ee78 Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/runtime/Qt3DSIScriptBridge.h')
-rw-r--r--src/runtime/Qt3DSIScriptBridge.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/Qt3DSIScriptBridge.h b/src/runtime/Qt3DSIScriptBridge.h
index 16bf299..b9df2b3 100644
--- a/src/runtime/Qt3DSIScriptBridge.h
+++ b/src/runtime/Qt3DSIScriptBridge.h
@@ -39,6 +39,10 @@
#include <QtCore/qvector.h>
#include <QtCore/qstringlist.h>
+QT_BEGIN_NAMESPACE
+class QQmlImageProviderBase;
+QT_END_NAMESPACE
+
namespace qt3dsimp {
struct Mesh;
}