- class QRenderTarget¶
The
QRenderTarget
class encapsulates a target (usually a frame buffer object) which the renderer can render into. More…Synopsis¶
Methods¶
def
__init__()
def
addOutput()
def
outputs()
def
removeOutput()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
A
QRenderTarget
comprises ofQRenderTargetOutput
objects, 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 theQRenderTargetSelector
are used.- __init__([parent=None])¶
- Parameters:
parent –
QNode
The constructor creates a new
QRenderTarget
instance with the specifiedparent
.- addOutput(output)¶
- Parameters:
output –
QRenderTargetOutput
Adds a chosen output via
output
.- outputs()¶
- Return type:
.list of Qt3DRender.QRenderTargetOutput
Returns the chosen outputs.
- removeOutput(output)¶
- Parameters:
output –
QRenderTargetOutput
Removes a chosen output via
output
.