|
@@ -40,37 +40,108 @@ Properties
|
|
.. table::
|
|
.. table::
|
|
:widths: auto
|
|
:widths: auto
|
|
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`accessor_type<class_GLTFAccessor_property_accessor_type>` | ``0`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`buffer_view<class_GLTFAccessor_property_buffer_view>` | ``-1`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`byte_offset<class_GLTFAccessor_property_byte_offset>` | ``0`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`component_type<class_GLTFAccessor_property_component_type>` | ``0`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`count<class_GLTFAccessor_property_count>` | ``0`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`PackedFloat64Array<class_PackedFloat64Array>` | :ref:`max<class_GLTFAccessor_property_max>` | ``PackedFloat64Array()`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`PackedFloat64Array<class_PackedFloat64Array>` | :ref:`min<class_GLTFAccessor_property_min>` | ``PackedFloat64Array()`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`bool<class_bool>` | :ref:`normalized<class_GLTFAccessor_property_normalized>` | ``false`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`sparse_count<class_GLTFAccessor_property_sparse_count>` | ``0`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`sparse_indices_buffer_view<class_GLTFAccessor_property_sparse_indices_buffer_view>` | ``0`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`sparse_indices_byte_offset<class_GLTFAccessor_property_sparse_indices_byte_offset>` | ``0`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`sparse_indices_component_type<class_GLTFAccessor_property_sparse_indices_component_type>` | ``0`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`sparse_values_buffer_view<class_GLTFAccessor_property_sparse_values_buffer_view>` | ``0`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`sparse_values_byte_offset<class_GLTFAccessor_property_sparse_values_byte_offset>` | ``0`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
- | :ref:`int<class_int>` | :ref:`type<class_GLTFAccessor_property_type>` | ``0`` |
|
|
|
|
- +-----------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` | :ref:`accessor_type<class_GLTFAccessor_property_accessor_type>` | ``0`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`int<class_int>` | :ref:`buffer_view<class_GLTFAccessor_property_buffer_view>` | ``-1`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`int<class_int>` | :ref:`byte_offset<class_GLTFAccessor_property_byte_offset>` | ``0`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`int<class_int>` | :ref:`component_type<class_GLTFAccessor_property_component_type>` | ``0`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`int<class_int>` | :ref:`count<class_GLTFAccessor_property_count>` | ``0`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`PackedFloat64Array<class_PackedFloat64Array>` | :ref:`max<class_GLTFAccessor_property_max>` | ``PackedFloat64Array()`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`PackedFloat64Array<class_PackedFloat64Array>` | :ref:`min<class_GLTFAccessor_property_min>` | ``PackedFloat64Array()`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`bool<class_bool>` | :ref:`normalized<class_GLTFAccessor_property_normalized>` | ``false`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`int<class_int>` | :ref:`sparse_count<class_GLTFAccessor_property_sparse_count>` | ``0`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`int<class_int>` | :ref:`sparse_indices_buffer_view<class_GLTFAccessor_property_sparse_indices_buffer_view>` | ``0`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`int<class_int>` | :ref:`sparse_indices_byte_offset<class_GLTFAccessor_property_sparse_indices_byte_offset>` | ``0`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`int<class_int>` | :ref:`sparse_indices_component_type<class_GLTFAccessor_property_sparse_indices_component_type>` | ``0`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`int<class_int>` | :ref:`sparse_values_buffer_view<class_GLTFAccessor_property_sparse_values_buffer_view>` | ``0`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`int<class_int>` | :ref:`sparse_values_byte_offset<class_GLTFAccessor_property_sparse_values_byte_offset>` | ``0`` |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+ | :ref:`int<class_int>` | :ref:`type<class_GLTFAccessor_property_type>` | |
|
|
|
|
+ +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
|
|
|
|
+
|
|
|
|
+.. rst-class:: classref-section-separator
|
|
|
|
+
|
|
|
|
+----
|
|
|
|
+
|
|
|
|
+.. rst-class:: classref-descriptions-group
|
|
|
|
+
|
|
|
|
+Enumerations
|
|
|
|
+------------
|
|
|
|
+
|
|
|
|
+.. _enum_GLTFAccessor_GLTFAccessorType:
|
|
|
|
+
|
|
|
|
+.. rst-class:: classref-enumeration
|
|
|
|
+
|
|
|
|
+enum **GLTFAccessorType**: :ref:`🔗<enum_GLTFAccessor_GLTFAccessorType>`
|
|
|
|
+
|
|
|
|
+.. _class_GLTFAccessor_constant_TYPE_SCALAR:
|
|
|
|
+
|
|
|
|
+.. rst-class:: classref-enumeration-constant
|
|
|
|
+
|
|
|
|
+:ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_SCALAR** = ``0``
|
|
|
|
+
|
|
|
|
+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.
|
|
|
|
+
|
|
|
|
+.. _class_GLTFAccessor_constant_TYPE_VEC2:
|
|
|
|
+
|
|
|
|
+.. rst-class:: classref-enumeration-constant
|
|
|
|
+
|
|
|
|
+:ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_VEC2** = ``1``
|
|
|
|
+
|
|
|
|
+Accessor type "VEC2". For the glTF object model, this maps to "float2", represented in the glTF JSON as an array of two floats.
|
|
|
|
+
|
|
|
|
+.. _class_GLTFAccessor_constant_TYPE_VEC3:
|
|
|
|
+
|
|
|
|
+.. rst-class:: classref-enumeration-constant
|
|
|
|
+
|
|
|
|
+:ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_VEC3** = ``2``
|
|
|
|
+
|
|
|
|
+Accessor type "VEC3". For the glTF object model, this maps to "float3", represented in the glTF JSON as an array of three floats.
|
|
|
|
+
|
|
|
|
+.. _class_GLTFAccessor_constant_TYPE_VEC4:
|
|
|
|
+
|
|
|
|
+.. rst-class:: classref-enumeration-constant
|
|
|
|
+
|
|
|
|
+:ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_VEC4** = ``3``
|
|
|
|
+
|
|
|
|
+Accessor type "VEC4". For the glTF object model, this maps to "float4", represented in the glTF JSON as an array of four floats.
|
|
|
|
+
|
|
|
|
+.. _class_GLTFAccessor_constant_TYPE_MAT2:
|
|
|
|
+
|
|
|
|
+.. rst-class:: classref-enumeration-constant
|
|
|
|
+
|
|
|
|
+:ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_MAT2** = ``4``
|
|
|
|
+
|
|
|
|
+Accessor type "MAT2". For the glTF object model, this maps to "float2x2", represented in the glTF JSON as an array of four floats.
|
|
|
|
+
|
|
|
|
+.. _class_GLTFAccessor_constant_TYPE_MAT3:
|
|
|
|
+
|
|
|
|
+.. rst-class:: classref-enumeration-constant
|
|
|
|
+
|
|
|
|
+:ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_MAT3** = ``5``
|
|
|
|
+
|
|
|
|
+Accessor type "MAT3". For the glTF object model, this maps to "float3x3", represented in the glTF JSON as an array of nine floats.
|
|
|
|
+
|
|
|
|
+.. _class_GLTFAccessor_constant_TYPE_MAT4:
|
|
|
|
+
|
|
|
|
+.. rst-class:: classref-enumeration-constant
|
|
|
|
+
|
|
|
|
+:ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_MAT4** = ``6``
|
|
|
|
+
|
|
|
|
+Accessor type "MAT4". For the glTF object model, this maps to "float4x4", represented in the glTF JSON as an array of sixteen floats.
|
|
|
|
|
|
.. rst-class:: classref-section-separator
|
|
.. rst-class:: classref-section-separator
|
|
|
|
|
|
@@ -85,12 +156,12 @@ Property Descriptions
|
|
|
|
|
|
.. rst-class:: classref-property
|
|
.. rst-class:: classref-property
|
|
|
|
|
|
-:ref:`int<class_int>` **accessor_type** = ``0`` :ref:`🔗<class_GLTFAccessor_property_accessor_type>`
|
|
|
|
|
|
+:ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **accessor_type** = ``0`` :ref:`🔗<class_GLTFAccessor_property_accessor_type>`
|
|
|
|
|
|
.. rst-class:: classref-property-setget
|
|
.. rst-class:: classref-property-setget
|
|
|
|
|
|
-- |void| **set_accessor_type**\ (\ value\: :ref:`int<class_int>`\ )
|
|
|
|
-- :ref:`int<class_int>` **get_accessor_type**\ (\ )
|
|
|
|
|
|
+- |void| **set_accessor_type**\ (\ value\: :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>`\ )
|
|
|
|
+- :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **get_accessor_type**\ (\ )
|
|
|
|
|
|
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".
|
|
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".
|
|
|
|
|
|
@@ -323,7 +394,7 @@ The offset relative to the start of the bufferView in bytes.
|
|
|
|
|
|
.. rst-class:: classref-property
|
|
.. rst-class:: classref-property
|
|
|
|
|
|
-:ref:`int<class_int>` **type** = ``0`` :ref:`🔗<class_GLTFAccessor_property_type>`
|
|
|
|
|
|
+:ref:`int<class_int>` **type** :ref:`🔗<class_GLTFAccessor_property_type>`
|
|
|
|
|
|
.. rst-class:: classref-property-setget
|
|
.. rst-class:: classref-property-setget
|
|
|
|
|