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

NoDraw QML Type

When a NoDraw node is present in a FrameGraph branch, this prevents the renderer from rendering any primitive.

This type was introduced in Qt 5.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

NoDraw QML Type

  • Import Statement: import Qt3D.Render 2.4

  • Since:: Qt 5.5

  • Inherits:: FrameGraphNode

  • Instantiates:: QNoDraw

Detailed Description

NoDraw should be used when the FrameGraph needs to set up some render states or clear some buffers without requiring any mesh to be drawn. It has the same effect as having a Qt3DRender::QRenderPassFilter that matches none of available Qt3DRender::QRenderPass instances of the scene without the overhead cost of actually performing the filtering.

When disabled, a NoDraw node won't prevent the scene from being rendered. Toggling the enabled property is therefore a way to make a NoDraw active or inactive.

NoDraw is usually used as a child of a ClearBuffers node to prevent from drawing the scene when there are multiple render passes.

 
Sélectionnez
Viewport {
    CameraSelector {
        ClearBuffers {
            buffers: ClearBuffers.ColorDepthBuffer
            NoDraw { } // Prevents from drawing anything
        }
        RenderPassFilter {
            ...
        }
        RenderPassFilter {
            ...
        }
    }
}

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