QRenderTargetclass encapsulates a target (usually a frame buffer object) which the renderer can render into. 更多 …
def
addOutput
(output)
def
outputs
()
def
removeOutput
(output)
A
QRenderTargetcomprises ofQRenderTargetOutputobjects, which specify the the buffers the render target is rendering to. The user can specify MRT(Multiple Render Targets) by attaching multiple textures to different attachment points. The results are undefined if the user tries to attach multiple textures to the same attachment point. At render time, only the draw buffers specified in theQRenderTargetSelectorare used.
PySide2.Qt3DRender.Qt3DRender.
QRenderTarget
(
[
parent=None
]
)
¶
- param parent
QNode
The constructor creates a new
QRenderTarget
instance with the specified
parent
.
PySide2.Qt3DRender.Qt3DRender.QRenderTarget.
addOutput
(
output
)
¶
output
–
QRenderTargetOutput
Adds a chosen output via
output
.
PySide2.Qt3DRender.Qt3DRender.QRenderTarget.
outputs
(
)
¶
Returns the chosen outputs.
PySide2.Qt3DRender.Qt3DRender.QRenderTarget.
removeOutput
(
output
)
¶
output
–
QRenderTargetOutput
Removes a chosen output via
output
.