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

QTechniqueFilter Class

A QFrameGraphNode used to select QTechniques to use.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QTechniqueFilter Class

Detailed Description

A Qt3DRender::QTechniqueFilter specifies which techniques are used by the FrameGraph when rendering the entities. QTechniqueFilter specifies a list of Qt3DRender::QFilterKey objects and Qt3DRender::QParameter objects. When QTechniqueFilter is present in the FrameGraph, only the techiques matching the keys in the list are used for rendering. The parameters in the list can be used to set values for shader parameters. The parameters in QTechniqueFilter override parameters in QMaterial, QEffect, QTechnique and QRenderPass, but are overridden by parameters in QRenderPassFilter.

Member Function Documentation

 

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

The constructor creates an instance with the specified parent.

void QTechniqueFilter::addMatch(Qt3DRender::QFilterKey *filterKey)

Add the filterKey to the match vector.

void QTechniqueFilter::addParameter(Qt3DRender::QParameter *parameter)

Add parameter to the vector of parameters that will be passed to the graphics pipeline.

QList<Qt3DRender::QFilterKey *> QTechniqueFilter::matchAll() const

Returns a vector of the current keys for the filter.

QList<Qt3DRender::QParameter *> QTechniqueFilter::parameters() const

Returns the current vector of parameters.

void QTechniqueFilter::removeMatch(Qt3DRender::QFilterKey *filterKey)

Remove the filterKey from the match vector.

void QTechniqueFilter::removeParameter(Qt3DRender::QParameter *parameter)

Remove parameter from the vector of parameters passed to the graphics pipeline.

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