Frame graph node for render capture. 更多...
头: | #include <Qt3DRender/QRenderCapture> |
qmake: | QT += 3drender |
Since: | Qt 5.8 |
实例化: | RenderCapture |
继承: | Qt3DRender::QFrameGraphNode |
QRenderCapture (Qt3DCore::QNode * parent = nullptr) | |
Qt3DRender::QRenderCaptureReply * | requestCapture () |
Qt3DRender::QRenderCaptureReply * | requestCapture (const QRect & rect ) |
const QMetaObject | staticMetaObject |
Frame graph node for render capture.
The QRenderCapture is used to capture rendering into an image at any render stage. Capturing must be initiated by the user and one image is returned per capture request. User can issue multiple render capture requests simultaniously, but only one request is served per QRenderCapture instance per frame.
The constructor creates an instance with the specified parent .
Used to request render capture. Only one render capture result is produced per requestCapture call even if the frame graph has multiple leaf nodes. The function returns a QRenderCaptureReply object, which receives the captured image when it is done. The user is responsible for deallocating the returned object.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
Used to request render capture from a specified rect . Only one render capture result is produced per requestCapture call even if the frame graph has multiple leaf nodes. The function returns a QRenderCaptureReply object, which receives the captured image when it is done. The user is responsible for deallocating the returned object.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .