class_gltfaccessor.rst 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/gltf/doc_classes/GLTFAccessor.xml.
  6. .. _class_GLTFAccessor:
  7. GLTFAccessor
  8. ============
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Represents a glTF accessor.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. GLTFAccessor is a data structure representing a glTF ``accessor`` that would be found in the ``"accessors"`` array. A buffer is a blob of binary data. A buffer view is a slice of a buffer. An accessor is a typed interpretation of the data in a buffer view.
  15. Most custom data stored in glTF does not need accessors, only buffer views (see :ref:`GLTFBufferView<class_GLTFBufferView>`). Accessors are for more advanced use cases such as interleaved mesh data encoded for the GPU.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - `Buffers, BufferViews, and Accessors in Khronos glTF specification <https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_005_BuffersBufferViewsAccessors.md>`__
  20. - :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
  21. .. rst-class:: classref-reftable-group
  22. Properties
  23. ----------
  24. .. table::
  25. :widths: auto
  26. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  27. | :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` | :ref:`accessor_type<class_GLTFAccessor_property_accessor_type>` | ``0`` |
  28. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  29. | :ref:`int<class_int>` | :ref:`buffer_view<class_GLTFAccessor_property_buffer_view>` | ``-1`` |
  30. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  31. | :ref:`int<class_int>` | :ref:`byte_offset<class_GLTFAccessor_property_byte_offset>` | ``0`` |
  32. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  33. | :ref:`int<class_int>` | :ref:`component_type<class_GLTFAccessor_property_component_type>` | ``0`` |
  34. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  35. | :ref:`int<class_int>` | :ref:`count<class_GLTFAccessor_property_count>` | ``0`` |
  36. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  37. | :ref:`PackedFloat64Array<class_PackedFloat64Array>` | :ref:`max<class_GLTFAccessor_property_max>` | ``PackedFloat64Array()`` |
  38. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  39. | :ref:`PackedFloat64Array<class_PackedFloat64Array>` | :ref:`min<class_GLTFAccessor_property_min>` | ``PackedFloat64Array()`` |
  40. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  41. | :ref:`bool<class_bool>` | :ref:`normalized<class_GLTFAccessor_property_normalized>` | ``false`` |
  42. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  43. | :ref:`int<class_int>` | :ref:`sparse_count<class_GLTFAccessor_property_sparse_count>` | ``0`` |
  44. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  45. | :ref:`int<class_int>` | :ref:`sparse_indices_buffer_view<class_GLTFAccessor_property_sparse_indices_buffer_view>` | ``0`` |
  46. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  47. | :ref:`int<class_int>` | :ref:`sparse_indices_byte_offset<class_GLTFAccessor_property_sparse_indices_byte_offset>` | ``0`` |
  48. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  49. | :ref:`int<class_int>` | :ref:`sparse_indices_component_type<class_GLTFAccessor_property_sparse_indices_component_type>` | ``0`` |
  50. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  51. | :ref:`int<class_int>` | :ref:`sparse_values_buffer_view<class_GLTFAccessor_property_sparse_values_buffer_view>` | ``0`` |
  52. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  53. | :ref:`int<class_int>` | :ref:`sparse_values_byte_offset<class_GLTFAccessor_property_sparse_values_byte_offset>` | ``0`` |
  54. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  55. | :ref:`int<class_int>` | :ref:`type<class_GLTFAccessor_property_type>` | |
  56. +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
  57. .. rst-class:: classref-section-separator
  58. ----
  59. .. rst-class:: classref-descriptions-group
  60. Enumerations
  61. ------------
  62. .. _enum_GLTFAccessor_GLTFAccessorType:
  63. .. rst-class:: classref-enumeration
  64. enum **GLTFAccessorType**: :ref:`🔗<enum_GLTFAccessor_GLTFAccessorType>`
  65. .. _class_GLTFAccessor_constant_TYPE_SCALAR:
  66. .. rst-class:: classref-enumeration-constant
  67. :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_SCALAR** = ``0``
  68. Accessor type "SCALAR". For the glTF object model, this can be used to map to a single float, int, or bool value, or a float array.
  69. .. _class_GLTFAccessor_constant_TYPE_VEC2:
  70. .. rst-class:: classref-enumeration-constant
  71. :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_VEC2** = ``1``
  72. Accessor type "VEC2". For the glTF object model, this maps to "float2", represented in the glTF JSON as an array of two floats.
  73. .. _class_GLTFAccessor_constant_TYPE_VEC3:
  74. .. rst-class:: classref-enumeration-constant
  75. :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_VEC3** = ``2``
  76. Accessor type "VEC3". For the glTF object model, this maps to "float3", represented in the glTF JSON as an array of three floats.
  77. .. _class_GLTFAccessor_constant_TYPE_VEC4:
  78. .. rst-class:: classref-enumeration-constant
  79. :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_VEC4** = ``3``
  80. Accessor type "VEC4". For the glTF object model, this maps to "float4", represented in the glTF JSON as an array of four floats.
  81. .. _class_GLTFAccessor_constant_TYPE_MAT2:
  82. .. rst-class:: classref-enumeration-constant
  83. :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_MAT2** = ``4``
  84. Accessor type "MAT2". For the glTF object model, this maps to "float2x2", represented in the glTF JSON as an array of four floats.
  85. .. _class_GLTFAccessor_constant_TYPE_MAT3:
  86. .. rst-class:: classref-enumeration-constant
  87. :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_MAT3** = ``5``
  88. Accessor type "MAT3". For the glTF object model, this maps to "float3x3", represented in the glTF JSON as an array of nine floats.
  89. .. _class_GLTFAccessor_constant_TYPE_MAT4:
  90. .. rst-class:: classref-enumeration-constant
  91. :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_MAT4** = ``6``
  92. Accessor type "MAT4". For the glTF object model, this maps to "float4x4", represented in the glTF JSON as an array of sixteen floats.
  93. .. rst-class:: classref-item-separator
  94. ----
  95. .. _enum_GLTFAccessor_GLTFComponentType:
  96. .. rst-class:: classref-enumeration
  97. enum **GLTFComponentType**: :ref:`🔗<enum_GLTFAccessor_GLTFComponentType>`
  98. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_NONE:
  99. .. rst-class:: classref-enumeration-constant
  100. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_NONE** = ``0``
  101. Component type "NONE". This is not a valid component type, and is used to indicate that the component type is not set.
  102. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_SIGNED_BYTE:
  103. .. rst-class:: classref-enumeration-constant
  104. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_SIGNED_BYTE** = ``5120``
  105. Component type "BYTE". The value is ``0x1400`` which comes from OpenGL. This indicates data is stored in 1-byte or 8-bit signed integers. This is a core part of the glTF specification.
  106. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_UNSIGNED_BYTE:
  107. .. rst-class:: classref-enumeration-constant
  108. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_UNSIGNED_BYTE** = ``5121``
  109. Component type "UNSIGNED_BYTE". The value is ``0x1401`` which comes from OpenGL. This indicates data is stored in 1-byte or 8-bit unsigned integers. This is a core part of the glTF specification.
  110. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_SIGNED_SHORT:
  111. .. rst-class:: classref-enumeration-constant
  112. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_SIGNED_SHORT** = ``5122``
  113. Component type "SHORT". The value is ``0x1402`` which comes from OpenGL. This indicates data is stored in 2-byte or 16-bit signed integers. This is a core part of the glTF specification.
  114. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_UNSIGNED_SHORT:
  115. .. rst-class:: classref-enumeration-constant
  116. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_UNSIGNED_SHORT** = ``5123``
  117. Component type "UNSIGNED_SHORT". The value is ``0x1403`` which comes from OpenGL. This indicates data is stored in 2-byte or 16-bit unsigned integers. This is a core part of the glTF specification.
  118. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_SIGNED_INT:
  119. .. rst-class:: classref-enumeration-constant
  120. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_SIGNED_INT** = ``5124``
  121. Component type "INT". The value is ``0x1404`` which comes from OpenGL. This indicates data is stored in 4-byte or 32-bit signed integers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including ``KHR_interactivity``.
  122. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_UNSIGNED_INT:
  123. .. rst-class:: classref-enumeration-constant
  124. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_UNSIGNED_INT** = ``5125``
  125. Component type "UNSIGNED_INT". The value is ``0x1405`` which comes from OpenGL. This indicates data is stored in 4-byte or 32-bit unsigned integers. This is a core part of the glTF specification.
  126. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_SINGLE_FLOAT:
  127. .. rst-class:: classref-enumeration-constant
  128. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_SINGLE_FLOAT** = ``5126``
  129. Component type "FLOAT". The value is ``0x1406`` which comes from OpenGL. This indicates data is stored in 4-byte or 32-bit floating-point numbers. This is a core part of the glTF specification.
  130. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_DOUBLE_FLOAT:
  131. .. rst-class:: classref-enumeration-constant
  132. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_DOUBLE_FLOAT** = ``5130``
  133. Component type "DOUBLE". The value is ``0x140A`` which comes from OpenGL. This indicates data is stored in 8-byte or 64-bit floating-point numbers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including ``KHR_interactivity``.
  134. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_HALF_FLOAT:
  135. .. rst-class:: classref-enumeration-constant
  136. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_HALF_FLOAT** = ``5131``
  137. Component type "HALF_FLOAT". The value is ``0x140B`` which comes from OpenGL. This indicates data is stored in 2-byte or 16-bit floating-point numbers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including ``KHR_interactivity``.
  138. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_SIGNED_LONG:
  139. .. rst-class:: classref-enumeration-constant
  140. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_SIGNED_LONG** = ``5134``
  141. Component type "LONG". The value is ``0x140E`` which comes from OpenGL. This indicates data is stored in 8-byte or 64-bit signed integers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including ``KHR_interactivity``.
  142. .. _class_GLTFAccessor_constant_COMPONENT_TYPE_UNSIGNED_LONG:
  143. .. rst-class:: classref-enumeration-constant
  144. :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_UNSIGNED_LONG** = ``5135``
  145. Component type "UNSIGNED_LONG". The value is ``0x140F`` which comes from OpenGL. This indicates data is stored in 8-byte or 64-bit unsigned integers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including ``KHR_interactivity``.
  146. .. rst-class:: classref-section-separator
  147. ----
  148. .. rst-class:: classref-descriptions-group
  149. Property Descriptions
  150. ---------------------
  151. .. _class_GLTFAccessor_property_accessor_type:
  152. .. rst-class:: classref-property
  153. :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **accessor_type** = ``0`` :ref:`🔗<class_GLTFAccessor_property_accessor_type>`
  154. .. rst-class:: classref-property-setget
  155. - |void| **set_accessor_type**\ (\ value\: :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>`\ )
  156. - :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **get_accessor_type**\ (\ )
  157. The glTF accessor type as an enum. Possible values are 0 for "SCALAR", 1 for "VEC2", 2 for "VEC3", 3 for "VEC4", 4 for "MAT2", 5 for "MAT3", and 6 for "MAT4".
  158. .. rst-class:: classref-item-separator
  159. ----
  160. .. _class_GLTFAccessor_property_buffer_view:
  161. .. rst-class:: classref-property
  162. :ref:`int<class_int>` **buffer_view** = ``-1`` :ref:`🔗<class_GLTFAccessor_property_buffer_view>`
  163. .. rst-class:: classref-property-setget
  164. - |void| **set_buffer_view**\ (\ value\: :ref:`int<class_int>`\ )
  165. - :ref:`int<class_int>` **get_buffer_view**\ (\ )
  166. The index of the buffer view this accessor is referencing. If ``-1``, this accessor is not referencing any buffer view.
  167. .. rst-class:: classref-item-separator
  168. ----
  169. .. _class_GLTFAccessor_property_byte_offset:
  170. .. rst-class:: classref-property
  171. :ref:`int<class_int>` **byte_offset** = ``0`` :ref:`🔗<class_GLTFAccessor_property_byte_offset>`
  172. .. rst-class:: classref-property-setget
  173. - |void| **set_byte_offset**\ (\ value\: :ref:`int<class_int>`\ )
  174. - :ref:`int<class_int>` **get_byte_offset**\ (\ )
  175. The offset relative to the start of the buffer view in bytes.
  176. .. rst-class:: classref-item-separator
  177. ----
  178. .. _class_GLTFAccessor_property_component_type:
  179. .. rst-class:: classref-property
  180. :ref:`int<class_int>` **component_type** = ``0`` :ref:`🔗<class_GLTFAccessor_property_component_type>`
  181. .. rst-class:: classref-property-setget
  182. - |void| **set_component_type**\ (\ value\: :ref:`int<class_int>`\ )
  183. - :ref:`int<class_int>` **get_component_type**\ (\ )
  184. The glTF component type as an enum. See :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` for possible values. Within the core glTF specification, a value of 5125 or "UNSIGNED_INT" must not be used for any accessor that is not referenced by mesh.primitive.indices.
  185. .. rst-class:: classref-item-separator
  186. ----
  187. .. _class_GLTFAccessor_property_count:
  188. .. rst-class:: classref-property
  189. :ref:`int<class_int>` **count** = ``0`` :ref:`🔗<class_GLTFAccessor_property_count>`
  190. .. rst-class:: classref-property-setget
  191. - |void| **set_count**\ (\ value\: :ref:`int<class_int>`\ )
  192. - :ref:`int<class_int>` **get_count**\ (\ )
  193. The number of elements referenced by this accessor.
  194. .. rst-class:: classref-item-separator
  195. ----
  196. .. _class_GLTFAccessor_property_max:
  197. .. rst-class:: classref-property
  198. :ref:`PackedFloat64Array<class_PackedFloat64Array>` **max** = ``PackedFloat64Array()`` :ref:`🔗<class_GLTFAccessor_property_max>`
  199. .. rst-class:: classref-property-setget
  200. - |void| **set_max**\ (\ value\: :ref:`PackedFloat64Array<class_PackedFloat64Array>`\ )
  201. - :ref:`PackedFloat64Array<class_PackedFloat64Array>` **get_max**\ (\ )
  202. Maximum value of each component in this accessor.
  203. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedFloat64Array<class_PackedFloat64Array>` for more details.
  204. .. rst-class:: classref-item-separator
  205. ----
  206. .. _class_GLTFAccessor_property_min:
  207. .. rst-class:: classref-property
  208. :ref:`PackedFloat64Array<class_PackedFloat64Array>` **min** = ``PackedFloat64Array()`` :ref:`🔗<class_GLTFAccessor_property_min>`
  209. .. rst-class:: classref-property-setget
  210. - |void| **set_min**\ (\ value\: :ref:`PackedFloat64Array<class_PackedFloat64Array>`\ )
  211. - :ref:`PackedFloat64Array<class_PackedFloat64Array>` **get_min**\ (\ )
  212. Minimum value of each component in this accessor.
  213. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedFloat64Array<class_PackedFloat64Array>` for more details.
  214. .. rst-class:: classref-item-separator
  215. ----
  216. .. _class_GLTFAccessor_property_normalized:
  217. .. rst-class:: classref-property
  218. :ref:`bool<class_bool>` **normalized** = ``false`` :ref:`🔗<class_GLTFAccessor_property_normalized>`
  219. .. rst-class:: classref-property-setget
  220. - |void| **set_normalized**\ (\ value\: :ref:`bool<class_bool>`\ )
  221. - :ref:`bool<class_bool>` **get_normalized**\ (\ )
  222. Specifies whether integer data values are normalized before usage.
  223. .. rst-class:: classref-item-separator
  224. ----
  225. .. _class_GLTFAccessor_property_sparse_count:
  226. .. rst-class:: classref-property
  227. :ref:`int<class_int>` **sparse_count** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_count>`
  228. .. rst-class:: classref-property-setget
  229. - |void| **set_sparse_count**\ (\ value\: :ref:`int<class_int>`\ )
  230. - :ref:`int<class_int>` **get_sparse_count**\ (\ )
  231. Number of deviating accessor values stored in the sparse array.
  232. .. rst-class:: classref-item-separator
  233. ----
  234. .. _class_GLTFAccessor_property_sparse_indices_buffer_view:
  235. .. rst-class:: classref-property
  236. :ref:`int<class_int>` **sparse_indices_buffer_view** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_indices_buffer_view>`
  237. .. rst-class:: classref-property-setget
  238. - |void| **set_sparse_indices_buffer_view**\ (\ value\: :ref:`int<class_int>`\ )
  239. - :ref:`int<class_int>` **get_sparse_indices_buffer_view**\ (\ )
  240. The index of the buffer view with sparse indices. The referenced buffer view MUST NOT have its target or byteStride properties defined. The buffer view and the optional byteOffset MUST be aligned to the componentType byte length.
  241. .. rst-class:: classref-item-separator
  242. ----
  243. .. _class_GLTFAccessor_property_sparse_indices_byte_offset:
  244. .. rst-class:: classref-property
  245. :ref:`int<class_int>` **sparse_indices_byte_offset** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_indices_byte_offset>`
  246. .. rst-class:: classref-property-setget
  247. - |void| **set_sparse_indices_byte_offset**\ (\ value\: :ref:`int<class_int>`\ )
  248. - :ref:`int<class_int>` **get_sparse_indices_byte_offset**\ (\ )
  249. The offset relative to the start of the buffer view in bytes.
  250. .. rst-class:: classref-item-separator
  251. ----
  252. .. _class_GLTFAccessor_property_sparse_indices_component_type:
  253. .. rst-class:: classref-property
  254. :ref:`int<class_int>` **sparse_indices_component_type** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_indices_component_type>`
  255. .. rst-class:: classref-property-setget
  256. - |void| **set_sparse_indices_component_type**\ (\ value\: :ref:`int<class_int>`\ )
  257. - :ref:`int<class_int>` **get_sparse_indices_component_type**\ (\ )
  258. The indices component data type as an enum. Possible values are 5121 for "UNSIGNED_BYTE", 5123 for "UNSIGNED_SHORT", and 5125 for "UNSIGNED_INT".
  259. .. rst-class:: classref-item-separator
  260. ----
  261. .. _class_GLTFAccessor_property_sparse_values_buffer_view:
  262. .. rst-class:: classref-property
  263. :ref:`int<class_int>` **sparse_values_buffer_view** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_values_buffer_view>`
  264. .. rst-class:: classref-property-setget
  265. - |void| **set_sparse_values_buffer_view**\ (\ value\: :ref:`int<class_int>`\ )
  266. - :ref:`int<class_int>` **get_sparse_values_buffer_view**\ (\ )
  267. The index of the bufferView with sparse values. The referenced buffer view MUST NOT have its target or byteStride properties defined.
  268. .. rst-class:: classref-item-separator
  269. ----
  270. .. _class_GLTFAccessor_property_sparse_values_byte_offset:
  271. .. rst-class:: classref-property
  272. :ref:`int<class_int>` **sparse_values_byte_offset** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_values_byte_offset>`
  273. .. rst-class:: classref-property-setget
  274. - |void| **set_sparse_values_byte_offset**\ (\ value\: :ref:`int<class_int>`\ )
  275. - :ref:`int<class_int>` **get_sparse_values_byte_offset**\ (\ )
  276. The offset relative to the start of the bufferView in bytes.
  277. .. rst-class:: classref-item-separator
  278. ----
  279. .. _class_GLTFAccessor_property_type:
  280. .. rst-class:: classref-property
  281. :ref:`int<class_int>` **type** :ref:`🔗<class_GLTFAccessor_property_type>`
  282. .. rst-class:: classref-property-setget
  283. - |void| **set_type**\ (\ value\: :ref:`int<class_int>`\ )
  284. - :ref:`int<class_int>` **get_type**\ (\ )
  285. **Deprecated:** Use :ref:`accessor_type<class_GLTFAccessor_property_accessor_type>` instead.
  286. The glTF accessor type as an enum. Use :ref:`accessor_type<class_GLTFAccessor_property_accessor_type>` instead.
  287. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  288. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  289. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  290. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  291. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  292. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  293. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  294. .. |void| replace:: :abbr:`void (No return value.)`