class QRenderTarget#

The QRenderTarget class encapsulates a target (usually a frame buffer object) which the renderer can render into. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QRenderTarget

Synopsis#

Methods#

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 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.

__init__([parent=None])#
Parameters:

parentQNode

The constructor creates a new QRenderTarget instance with the specified parent.

addOutput(output)#
Parameters:

outputQRenderTargetOutput

Adds a chosen output via output.

outputs()#
Return type:

.list of Qt3DRender.QRenderTargetOutput

Returns the chosen outputs.

removeOutput(output)#
Parameters:

outputQRenderTargetOutput

Removes a chosen output via output.