cesium-native 0.43.0
Loading...
Searching...
No Matches
ExtensionMeshPrimitiveExtStructuralMetadata.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#include <vector>
10
11namespace CesiumGltf {
20 static constexpr const char* TypeName =
21 "ExtensionMeshPrimitiveExtStructuralMetadata";
24 static constexpr const char* ExtensionName = "EXT_structural_metadata";
25
30 std::vector<int32_t> propertyTextures;
31
36 std::vector<int32_t> propertyAttributes;
37
44 int64_t getSizeBytes() const {
45 int64_t accum = 0;
46 accum += int64_t(sizeof(ExtensionMeshPrimitiveExtStructuralMetadata));
48 int64_t(sizeof(CesiumUtility::ExtensibleObject));
49 accum += int64_t(sizeof(int32_t) * this->propertyTextures.capacity());
50 accum += int64_t(sizeof(int32_t) * this->propertyAttributes.capacity());
51 return accum;
52 }
53};
54} // namespace CesiumGltf
Classes for working with glTF models.
std::vector< int32_t > propertyAttributes
An array of indexes of property attributes in the root EXT_structural_metadata object.
std::vector< int32_t > propertyTextures
An array of indexes of property textures in the root EXT_structural_metadata object.
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 ...