Attribute QML Type
Define un atributo y cómo deben leerse los datos de un búfer. Más información...
| Import Statement: | import Qt3D.Core 2.12 |
| In C++: | QAttribute |
| Status: | Deprecated |
Este tipo está obsoleto. Recomendamos encarecidamente no utilizarlo en código nuevo.
Descripción detallada
Hay tres tipos de atributos.
- VertexAttribute: se utiliza para definir los datos que se van a leer por vértice
- IndexAttribute: se utiliza para definir índices de vértices cuando se van a utilizar 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, solo son relevantes «count», «stride» y «offset».
Al proporcionar tus propios atributos, puede ser conveniente nombrarlos utilizando funciones auxiliares como `QAttribute::defaultPositionAttributeName()`, ya que así te asegurarás de que tu geometría sea compatible con la selección y con 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.