IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QRenderTargetSelector Class

Provides a way of specifying a render target.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QRenderTargetSelector Class

  • Header: QRenderTargetSelector

  • Since: Qt 5.7

  • qmake: QT += 3drender

  • Inherited By:

  • Instantiated By: qml-qt3d-render-rendertargetselector.xml

  • Inherits: Qt3DRender::QFrameGraphNode

Detailed Description

A Qt3DRender::QRenderTargetSelector is used to select active Qt3DRender::QRenderTarget for the FrameGraph. When QRenderTargetSelector is present in the FrameGraph, the rendering is directed into QTexture objects or draw buffers instead of the surface specified in the Qt3DRender::QRenderSurfaceSelector. A render buffer is automatically generated for an attachment point if drawBuffers contain attachment point that any output in the QRenderTarget do not specify. If the drawBuffers is empty, the renderer will default to using all the outputs in QRenderTarget.

Property Documentation

 

target : Qt3DRender::QRenderTarget*

Holds the current render target

Access functions:

  • *target() const

  • void setTarget( *target)

Notifier signal:

  • void targetChanged( *target)

Member Function Documentation

 

[explicit] QRenderTargetSelector::QRenderTargetSelector(Qt3DCore::QNode *parent = nullptr)

Constructs QRenderTargetSelector with given parent.

QVector<QRenderTargetOutput::AttachmentPoint> QRenderTargetSelector::outputs() const

Returns the list of draw buffers for the current Qt3DRender::QRenderTargetSelector instance.

See Also

See also setOutputs()

void QRenderTargetSelector::setOutputs(const QVector<QRenderTargetOutput::AttachmentPoint> &buffers)

Sets the draw buffers to be used. The draw buffers should be matching the Qt3DRender::QRenderTargetOutput::AttachmentPoint defined in the attachments of the Qt3DRender::QRenderTarget associated to the Qt3DRender::QRenderTargetSelector instance.

At render time, if no draw buffer has been specified, the renderer will default to using all the attachments' draw buffers.

See Also

See also outputs()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+