内容表

上一话题

Qt3DRender.QRenderCapabilities

下一话题

Qt3DRender.QRenderCaptureReply

Qt3DRender.QRenderCapture

Frame graph node for render capture. 更多

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QRenderCapture

概要

函数

详细描述

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.

class PySide2.Qt3DRender.Qt3DRender. QRenderCapture ( [ parent=None ] )
param parent

QNode

The constructor creates an instance with the specified parent .

PySide2.Qt3DRender.Qt3DRender.QRenderCapture. requestCapture ( )
返回类型

QRenderCaptureReply

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 by calling deleterLater().

PySide2.Qt3DRender.Qt3DRender.QRenderCapture. requestCapture ( rect )
参数

rect QRect

返回类型

QRenderCaptureReply

PySide2.Qt3DRender.Qt3DRender.QRenderCapture. requestCapture ( captureId )
参数

captureId int

返回类型

QRenderCaptureReply

注意

此函数被弃用。

Used to request render capture. User can specify a captureId to identify the request. The requestId does not have to be unique. Only one render capture result is produced per 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 by calling deleteLater() .