Attribute QML Type

속성과 버퍼에서 데이터를 읽는 방법을 정의합니다. 더 보기...

Import Statement: import Qt3D.Core 2.8
In C++: QAttribute
Status: Deprecated

상세 설명

어트리뷰트에는 3가지 유형이 있습니다.

  • VertexAttribute: 버텍스 단위로 읽을 데이터를 정의하는 데 사용됩니다.
  • IndexAttribute: 인덱싱된 드로우 호출을 사용할 때 버텍스 인덱스를 정의하는 데 사용됩니다.
  • DrawIndirectAttribute: 간접 그리기 호출을 사용할 때 사용할 DrawIndirect 버퍼를 지정하는 데 사용됩니다.

참고: 어트리뷰트가 DrawIndirectAttribute 유형인 경우 카운트, 보폭 및 오프셋만 관련됩니다.

자체 어트리뷰트를 제공할 때는 QAttribute::defaultPositionAttributeName()과 같은 헬퍼를 사용하여 어트리뷰트 이름을 지정하면 지오메트리가 피킹 및 Qt3DExtras 모듈에서 제공하는 다양한 머티리얼과 호환되도록 할 수 있습니다.

© 2025 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.