5 #include "CesiumGltf/AccessorSparse.h"
6 #include "CesiumGltf/Library.h"
7 #include "CesiumGltf/NamedObject.h"
19 static inline constexpr
const char* TypeName =
"Accessor";
25 static constexpr int32_t BYTE = 5120;
27 static constexpr int32_t UNSIGNED_BYTE = 5121;
29 static constexpr int32_t SHORT = 5122;
31 static constexpr int32_t UNSIGNED_SHORT = 5123;
33 static constexpr int32_t INT = 5124;
35 static constexpr int32_t UNSIGNED_INT = 5125;
37 static constexpr int32_t INT64 = 5134;
39 static constexpr int32_t UNSIGNED_INT64 = 5135;
41 static constexpr int32_t FLOAT = 5126;
43 static constexpr int32_t DOUBLE = 5130;
51 inline static const std::string SCALAR =
"SCALAR";
53 inline static const std::string VEC2 =
"VEC2";
55 inline static const std::string VEC3 =
"VEC3";
57 inline static const std::string VEC4 =
"VEC4";
59 inline static const std::string MAT2 =
"MAT2";
61 inline static const std::string MAT3 =
"MAT3";
63 inline static const std::string MAT4 =
"MAT4";
73 int32_t bufferView = -1;
81 int64_t byteOffset = 0;
92 int32_t componentType = ComponentType::BYTE;
102 bool normalized =
false;
110 int64_t count = int64_t();
119 std::string type = Type::SCALAR;
155 std::optional<CesiumGltf::AccessorSparse>
sparse;
Classes for working with glTF models.
Known values for The datatype of the accessor's components.
Known values for Specifies if the accessor's elements are scalars, vectors, or matrices.
A typed view into a buffer view that contains raw binary data.
std::optional< CesiumGltf::AccessorSparse > sparse
Sparse storage of elements that deviate from their initialization value.
std::vector< double > min
Minimum value of each component in this accessor.
std::vector< double > max
Maximum value of each component in this accessor.
A typed view into a buffer view that contains raw binary data.
The base class for objects in a glTF that have a name.