cesium-native 0.43.0
Loading...
Searching...
No Matches
AccessorSparseIndices.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8#include <cstdint>
9
10namespace CesiumGltf {
16struct CESIUMGLTF_API AccessorSparseIndices final
21 static constexpr const char* TypeName = "AccessorSparseIndices";
22
28 static constexpr int32_t UNSIGNED_BYTE = 5121;
29
31 static constexpr int32_t UNSIGNED_SHORT = 5123;
32
34 static constexpr int32_t UNSIGNED_INT = 5125;
35 };
36
43 int32_t bufferView = -1;
44
48 int64_t byteOffset = 0;
49
56 int32_t componentType = ComponentType::UNSIGNED_BYTE;
57
64 int64_t getSizeBytes() const {
65 int64_t accum = 0;
66 accum += int64_t(sizeof(AccessorSparseIndices));
68 int64_t(sizeof(CesiumUtility::ExtensibleObject));
69
70 return accum;
71 }
72};
73} // namespace CesiumGltf
Classes for working with glTF models.
Known values for The indices data type.
An object pointing to a buffer view containing the indices of deviating accessor values....
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...