Qt3DRender.QRenderTargetSelector¶
Provides a way of specifying a render target. More…
Synopsis¶
Functions¶
def
outputs
()def
setOutputs
(buffers)def
target
()
Signals¶
def
targetChanged
(target)
Detailed Description¶
A
QRenderTargetSelector
is used to select activeQRenderTarget
for the FrameGraph. WhenQRenderTargetSelector
is present in the FrameGraph, the rendering is directed into QTexture objects or draw buffers instead of the surface specified in theQRenderSurfaceSelector
. A render buffer is automatically generated for an attachment point if drawBuffers contain attachment point that any output in theQRenderTarget
do not specify. If the drawBuffers is empty, the renderer will default to using all the outputs inQRenderTarget
.
-
class
PySide2.Qt3DRender.Qt3DRender.
QRenderTargetSelector
([parent=None])¶ - param parent
QNode
Constructs
QRenderTargetSelector
with givenparent
.
-
PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.
outputs
()¶ - Return type
Returns the list of draw buffers for the current
QRenderTargetSelector
instance.See also
setOutputs()
-
PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.
setOutputs
(buffers)¶ - Parameters
buffers –
Sets the draw
buffers
to be used. The draw buffers should be matching theAttachmentPoint
defined in the attachments of theQRenderTarget
associated to theQRenderTargetSelector
instance.Note
At render time, if no draw buffer has been specified, the renderer will default to using all the attachments’ draw buffers.
See also
outputs()
-
PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.
setTarget
(target)¶ - Parameters
target –
QRenderTarget
See also
target()
-
PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.
target
()¶ - Return type
QRenderTarget
See also
setTarget()
-
PySide2.Qt3DRender.Qt3DRender.QRenderTargetSelector.
targetChanged
(target)¶ - Parameters
target –
QRenderTarget
© 2018 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.