cesium-native 0.43.0
Loading...
Searching...
No Matches
ExtensionExtMeshFeatures.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/FeatureId.h>
6#include <CesiumGltf/Library.h>
7#include <CesiumUtility/ExtensibleObject.h>
8
9#include <vector>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API ExtensionExtMeshFeatures final
20 static constexpr const char* TypeName = "ExtensionExtMeshFeatures";
23 static constexpr const char* ExtensionName = "EXT_mesh_features";
24
28 std::vector<CesiumGltf::FeatureId> featureIds;
29
36 int64_t getSizeBytes() const {
37 int64_t accum = 0;
38 accum += int64_t(sizeof(ExtensionExtMeshFeatures));
40 int64_t(sizeof(CesiumUtility::ExtensibleObject));
41 accum +=
42 int64_t(sizeof(CesiumGltf::FeatureId) * this->featureIds.capacity());
43 for (const CesiumGltf::FeatureId& value : this->featureIds) {
44 accum += value.getSizeBytes() - int64_t(sizeof(CesiumGltf::FeatureId));
45 }
46 return accum;
47 }
48};
49} // namespace CesiumGltf
Classes for working with glTF models.
An object describing feature IDs for a mesh primitive.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::vector< CesiumGltf::FeatureId > featureIds
An array of feature ID sets.
Feature IDs stored in an attribute or texture.
Definition FeatureId.h:17
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 ...