cesium-native 0.43.0
Loading...
Searching...
No Matches
AccessorSparse.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/AccessorSparseIndices.h>
6#include <CesiumGltf/AccessorSparseValues.h>
7#include <CesiumGltf/Library.h>
8#include <CesiumUtility/ExtensibleObject.h>
9
10#include <cstdint>
11
12namespace CesiumGltf {
17struct CESIUMGLTF_API AccessorSparse final
22 static constexpr const char* TypeName = "AccessorSparse";
23
27 int64_t count = int64_t();
28
35
41
48 int64_t getSizeBytes() const {
49 int64_t accum = 0;
50 accum += int64_t(sizeof(AccessorSparse));
52 int64_t(sizeof(CesiumUtility::ExtensibleObject));
53 accum += this->indices.getSizeBytes() -
54 int64_t(sizeof(CesiumGltf::AccessorSparseIndices));
55 accum += this->values.getSizeBytes() -
56 int64_t(sizeof(CesiumGltf::AccessorSparseValues));
57 return accum;
58 }
59};
60} // namespace CesiumGltf
Classes for working with glTF models.
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,...
An object pointing to a buffer view containing the deviating accessor values. The number of elements ...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Sparse storage of accessor values that deviate from their initialization value.
CesiumGltf::AccessorSparseIndices indices
An object pointing to a buffer view containing the indices of deviating accessor values....
CesiumGltf::AccessorSparseValues values
An object pointing to a buffer view containing the 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 ...