QRenderTarget¶
The QRenderTarget
class encapsulates a target (usually a frame buffer object) which the renderer can render into. More…
Synopsis¶
Functions¶
def
addOutput
(output)def
outputs
()def
removeOutput
(output)
Detailed Description¶
A QRenderTarget
comprises of QRenderTargetOutput
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 the QRenderTargetSelector
are used.
- class PySide6.Qt3DRender.Qt3DRender.QRenderTarget([parent=None])¶
- Parameters
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
The constructor creates a new QRenderTarget
instance with the specified parent
.
- PySide6.Qt3DRender.Qt3DRender.QRenderTarget.addOutput(output)¶
- Parameters
Adds a chosen output via output
.
- PySide6.Qt3DRender.Qt3DRender.QRenderTarget.outputs()¶
- Return type
Returns the chosen outputs.
- PySide6.Qt3DRender.Qt3DRender.QRenderTarget.removeOutput(output)¶
- Parameters
Removes a chosen output via output
.
© 2022 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.