cesium-native 0.48.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
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.
static constexpr int32_t UNSIGNED_INT
UNSIGNED_INT (5125)
static constexpr int32_t UNSIGNED_SHORT
UNSIGNED_SHORT (5123)
static constexpr int32_t UNSIGNED_BYTE
UNSIGNED_BYTE (5121)
An object pointing to a buffer view containing the indices of deviating accessor values....
int32_t componentType
The indices data type.
int64_t byteOffset
The offset relative to the start of the buffer view in bytes.
static constexpr const char * TypeName
The original name of this type.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
int32_t bufferView
The index of the buffer view with sparse indices. The referenced buffer view MUST NOT have its target...
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 ...