|
9 | 9 | namespace gltfpp {
|
10 | 10 | inline namespace v1 {
|
11 | 11 | BETTER_ENUM(AccessorComponentType,
|
12 |
| - int, |
13 |
| - BYTE = 5120, |
14 |
| - UNSIGNED_BYTE = 5121, |
15 |
| - SHORT = 5122, |
16 |
| - UNSIGNED_SHORT = 5123, |
17 |
| - UNSIGNED_INT = 5125, |
18 |
| - FLOAT = 5126) |
| 12 | + int, |
| 13 | + BYTE = 5120, |
| 14 | + UNSIGNED_BYTE = 5121, |
| 15 | + SHORT = 5122, |
| 16 | + UNSIGNED_SHORT = 5123, |
| 17 | + UNSIGNED_INT = 5125, |
| 18 | + FLOAT = 5126) |
19 | 19 |
|
20 | 20 | BETTER_ENUM(AccessorType, int, SCALAR, VEC2, VEC3, VEC4, MAT2, MAT3, MAT4)
|
21 | 21 |
|
22 | 22 | constexpr auto AccessorTypeComponentCount =
|
23 |
| - boost::hana::make_map(boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::SCALAR>, 1), |
24 |
| - boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::VEC2>, 2), |
25 |
| - boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::VEC3>, 3), |
26 |
| - boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::VEC4>, 4), |
27 |
| - boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::MAT2>, 4), |
28 |
| - boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::MAT3>, 9), |
29 |
| - boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::MAT4>, 16)); |
| 23 | + boost::hana::make_map(boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::SCALAR>, 1), |
| 24 | + boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::VEC2>, 2), |
| 25 | + boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::VEC3>, 3), |
| 26 | + boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::VEC4>, 4), |
| 27 | + boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::MAT2>, 4), |
| 28 | + boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::MAT3>, 9), |
| 29 | + boost::hana::make_pair(boost::hana::int_c<(int)AccessorType::MAT4>, 16)); |
30 | 30 |
|
31 | 31 | struct Accessor {
|
32 | 32 | BOOST_HANA_DEFINE_STRUCT(Accessor,
|
33 |
| - (bool, normalized), |
34 |
| - (std::vector<double>, min), |
35 |
| - (std::vector<double>, max), |
36 |
| - (option<std::string>, name), |
37 |
| - (option<nlohmann::json>, sparse), |
38 |
| - (option<nlohmann::json>, extensions), |
39 |
| - (option<nlohmann::json>, extras), |
40 |
| - (ptrdiff_t, byteOffset), |
41 |
| - (size_t, count), |
42 |
| - (AccessorComponentType, componentType)); |
| 33 | + (bool, normalized), |
| 34 | + (std::vector<double>, min), |
| 35 | + (std::vector<double>, max), |
| 36 | + (option<std::string>, name), |
| 37 | + (option<nlohmann::json>, sparse), |
| 38 | + (option<nlohmann::json>, extensions), |
| 39 | + (option<nlohmann::json>, extras), |
| 40 | + (ptrdiff_t, byteOffset), |
| 41 | + (size_t, count), |
| 42 | + (AccessorComponentType, componentType)); |
43 | 43 | BufferView const *bufferView;
|
44 | 44 | };
|
45 | 45 |
|
46 | 46 | auto parse(Accessor &) noexcept;
|
47 |
| - } // namespace v1 |
48 |
| -} // namespace gltfpp |
| 47 | + } // namespace v1 |
| 48 | +} // namespace gltfpp |
0 commit comments