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

QRenderSettings Class

The QRenderSettings class holds settings related to rendering process and host the active FrameGraph.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QRenderSettings Class

  • Header: QRenderSettings

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3drender)

    target_link_libraries(mytarget PRIVATE Qt6::3drender)

  • qmake: QT += 3drender

  • Inherited By:

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

  • Inherits: Qt3DCore::QComponent

Detailed Description

The QRenderSettings component must be set as a component of the scene root entity. It specifies render policy and picking settings, as well as hosts the active FrameGraph.

Member Type Documentation

 

enum QRenderSettings::RenderPolicy

The render policy.

Constant

Value

Description

Qt3DRender::QRenderSettings::OnDemand

0

The FrameGraph is rendered only when something changes.

Qt3DRender::QRenderSettings::Always

1

The FrameGraph is rendered continuously, even if nothing has changed.

Property Documentation

 

activeFrameGraph : Qt3DRender::QFrameGraphNode*

Holds the currently active FrameGraph.

Access functions:

  • *activeFrameGraph() const

  • void setActiveFrameGraph( *activeFrameGraph)

Notifier signal:

  • void activeFrameGraphChanged( *activeFrameGraph)

[read-only] pickingSettings : Qt3DRender::QPickingSettings* const

Holds the current pick settings for the FrameGraph.

Access functions:

  • *pickingSettings()

[read-only] renderCapabilities : Qt3DRender::QRenderCapabilities* const

Holds the details of the supported rendering engine

Access functions:

  • *renderCapabilities()

renderPolicy : RenderPolicy

Holds the current render policy.

Access functions:

  • renderPolicy() const

  • void setRenderPolicy( renderPolicy)

Notifier signal:

  • void renderPolicyChanged( renderPolicy)

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