QRenderTarget

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

Synopsis

Functions

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 PySide2.Qt3DRender.QRenderTarget([parent=None])
param parent

PySide2.Qt3DCore.QNode

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

PySide2.Qt3DRender.QRenderTarget.addOutput(output)
Parameters

outputPySide2.Qt3DRender.QRenderTargetOutput

Adds a chosen output via output .

PySide2.Qt3DRender.QRenderTarget.outputs()
Return type

Returns the chosen outputs.

PySide2.Qt3DRender.QRenderTarget.removeOutput(output)
Parameters

outputPySide2.Qt3DRender.QRenderTargetOutput

Removes a chosen output via output .