fromOpenGLTexture(textureId, pixelSize[, sampleCount=1])
- class PySide6.QtQuick.QQuickRenderTarget¶
Constructs a default
QQuickRenderTarget that does not reference any native objects.
- static PySide6.QtQuick.QQuickRenderTarget.fromOpenGLTexture(textureId, pixelSize[, sampleCount=1])¶
Returns a new
QQuickRenderTarget referencing an OpenGL texture object specified by
pixelSize specifies the size of the image, in pixels. Currently only 2D textures are supported.
sampleCount specific the number of samples. 0 or 1 means no multisampling, while a value like 4 or 8 states that the native object is a multisample texture.
QQuickRenderTarget does not own any native resources, it merely contains references and the associated metadata of the size and sample count. It is the caller’s responsibility to ensure that the native resource exists as long as necessary.
- Return type
Returns true if this
QQuickRenderTarget is default constructed, referencing no native objects.
- Return type
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.