|
1 | 1 | <?xml version="1.0" encoding="UTF-8" ?> |
2 | 2 | <class name="GLTFAccessor" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd"> |
3 | 3 | <brief_description> |
4 | | - Represents a GLTF accessor. |
| 4 | + Represents a glTF accessor. |
5 | 5 | </brief_description> |
6 | 6 | <description> |
7 | | - GLTFAccessor is a data structure representing GLTF a [code]accessor[/code] that would be found in the [code]"accessors"[/code] 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. |
8 | | - Most custom data stored in GLTF does not need accessors, only buffer views (see [GLTFBufferView]). Accessors are for more advanced use cases such as interleaved mesh data encoded for the GPU. |
| 7 | + GLTFAccessor is a data structure representing a glTF [code]accessor[/code] that would be found in the [code]"accessors"[/code] 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. |
| 8 | + Most custom data stored in glTF does not need accessors, only buffer views (see [GLTFBufferView]). Accessors are for more advanced use cases such as interleaved mesh data encoded for the GPU. |
9 | 9 | </description> |
10 | 10 | <tutorials> |
11 | 11 | <link title="Buffers, BufferViews, and Accessors in Khronos glTF specification">https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_005_BuffersBufferViewsAccessors.md</link> |
12 | 12 | <link title="Runtime file loading and saving">$DOCS_URL/tutorials/io/runtime_file_loading_and_saving.html</link> |
13 | 13 | </tutorials> |
14 | 14 | <members> |
15 | 15 | <member name="accessor_type" type="int" setter="set_accessor_type" getter="get_accessor_type" enum="GLTFAccessor.GLTFAccessorType" default="0"> |
16 | | - 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". |
| 16 | + 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". |
17 | 17 | </member> |
18 | 18 | <member name="buffer_view" type="int" setter="set_buffer_view" getter="get_buffer_view" default="-1"> |
19 | 19 | The index of the buffer view this accessor is referencing. If [code]-1[/code], this accessor is not referencing any buffer view. |
|
22 | 22 | The offset relative to the start of the buffer view in bytes. |
23 | 23 | </member> |
24 | 24 | <member name="component_type" type="int" setter="set_component_type" getter="get_component_type" default="0"> |
25 | | - The GLTF component type as an enum. Possible values are 5120 for "BYTE", 5121 for "UNSIGNED_BYTE", 5122 for "SHORT", 5123 for "UNSIGNED_SHORT", 5125 for "UNSIGNED_INT", and 5126 for "FLOAT". A value of 5125 or "UNSIGNED_INT" must not be used for any accessor that is not referenced by mesh.primitive.indices. |
| 25 | + The glTF component type as an enum. Possible values are 5120 for "BYTE", 5121 for "UNSIGNED_BYTE", 5122 for "SHORT", 5123 for "UNSIGNED_SHORT", 5125 for "UNSIGNED_INT", and 5126 for "FLOAT". A value of 5125 or "UNSIGNED_INT" must not be used for any accessor that is not referenced by mesh.primitive.indices. |
26 | 26 | </member> |
27 | 27 | <member name="count" type="int" setter="set_count" getter="get_count" default="0"> |
28 | 28 | The number of elements referenced by this accessor. |
|
55 | 55 | The offset relative to the start of the bufferView in bytes. |
56 | 56 | </member> |
57 | 57 | <member name="type" type="int" setter="set_type" getter="get_type" deprecated="Use [member accessor_type] instead."> |
58 | | - The GLTF accessor type as an enum. Use [member accessor_type] instead. |
| 58 | + The glTF accessor type as an enum. Use [member accessor_type] instead. |
59 | 59 | </member> |
60 | 60 | </members> |
61 | 61 | <constants> |
|
0 commit comments