diff options
author | Kai Köhne <kai.koehne@qt.io> | 2024-04-19 12:32:37 +0200 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2024-04-19 16:15:15 +0200 |
commit | 79c3fb123d166f1eb355e064ee6cc6aca0e4749a (patch) | |
tree | 97c4e6d225e38e4e4dd20ab3d1927dc2bb6f3918 | |
parent | 793f81b1c67b87b49d7f519902e2049ba19e4c18 (diff) |
The method got removed in Qt 6.0, and the example code was adjusted
accordingly (commit fb96109bbc2ec5d).
While at it, also remove the mentioning of the even older
QQuickWindow::createTextureFromId(), as that is most likely
not relevant for new users looking into this example.
Pick-to: 6.6 6.7
Change-Id: I2ea3fcf3de78e13afec9e2b25aa8d4a6a9a9b571
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-rw-r--r-- | examples/quick/scenegraph/metaltextureimport/doc/src/metaltextureimport.qdoc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/quick/scenegraph/metaltextureimport/doc/src/metaltextureimport.qdoc b/examples/quick/scenegraph/metaltextureimport/doc/src/metaltextureimport.qdoc index 78babe6ca5..3b4912829e 100644 --- a/examples/quick/scenegraph/metaltextureimport/doc/src/metaltextureimport.qdoc +++ b/examples/quick/scenegraph/metaltextureimport/doc/src/metaltextureimport.qdoc @@ -64,9 +64,8 @@ After copying the values we need, sync() also performs some graphics resource initialization. The MTLDevice is queried from the scenegraph. Once a MTLTexture is available, a QSGTexture wrapping (not owning) it is created - via QQuickWindow::createTextureFromNativeObject(). This function is a - modern equivalent to QQuickWindow::createTextureFromId() that is not tied - to OpenGL. Finally, the QSGTexture is associated with the underlying + via \l QNativeInterface::QSGOpenGLTexture::fromNative(). + Finally, the QSGTexture is associated with the underlying materials by calling the base class' setTexture() function. \snippet scenegraph/metaltextureimport/metaltextureimport.mm 6 |