Attribute QML Type
Define un atributo y cómo deben leerse los datos de un Buffer. Más...
| Import Statement: | import Qt3D.Core 2.11 |
| In C++: | QAttribute |
| Status: | Deprecated |
Descripción detallada
Hay 3 tipos de atributos.
- VertexAttribute: se utiliza para definir los datos que deben leerse por vértice.
- IndexAttribute: se utiliza para definir los índices de vértice cuando se utilizan llamadas de dibujo indexadas.
- DrawIndirectAttribute: se utiliza para especificar el búfer DrawIndirect que se utilizará cuando se utilicen llamadas de dibujo indirectas.
Nota: cuando un atributo es de tipo DrawIndirectAttribute, sólo son relevantes count, stride y offset.
Cuando proporciones tus propios atributos, puede tener sentido nombrar tu atributo usando helpers como QAttribute::defaultPositionAttributeName() ya que eso asegurará que tu geometría será compatible con el picking y los diversos materiales proporcionados en el módulo Qt3DExtras.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.