From fe29ee5c5b0c1edbfabccf211bd8d73bb61672dc Mon Sep 17 00:00:00 2001 From: Jere Tuliniemi Date: Tue, 10 Sep 2019 11:00:57 +0300 Subject: Support QQuickImageProvider in the runtime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ä Reviewed-by: Miikka Heikkinen --- src/runtime/Qt3DSIScriptBridge.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/runtime/Qt3DSIScriptBridge.h') 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 #include +QT_BEGIN_NAMESPACE +class QQmlImageProviderBase; +QT_END_NAMESPACE + namespace qt3dsimp { struct Mesh; } -- cgit v1.2.3