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

Attribute QML Type

Defines an attribute and how data should be read from a Buffer.

This type was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Attribute QML Type

  • Import Statement: import Qt3D.Core 2.4

  • Since:: Qt 5.7

  • Instantiates:: QAttribute

Detailed Description

There are 3 types of attributes.

  • VertexAttribute: used to define data to be read on a per vertex basis

  • IndexAttribute: used to define vertex indices when indexed draw calls are to be used

  • DrawIndirectAttribute: used to specify the DrawIndirect buffer to be used when indirect draw calls are to be used

when an attribute is of type DrawIndirectAttribute, only count, stride and offset are relevant.

When providing your own attributes, it may make sense to name your attribute using helpers such as QAttribute::defaultPositionAttributeName() as that will ensure your geometry will be compatible with picking and the various materials provided in the Qt3DExtras module.

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