cesium-native 0.43.0
Loading...
Searching...
No Matches
ExtensionModelKhrMaterialsVariants.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/ExtensionModelKhrMaterialsVariantsValue.h>
6#include <CesiumGltf/Library.h>
7#include <CesiumUtility/ExtensibleObject.h>
8
9#include <vector>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API ExtensionModelKhrMaterialsVariants final
20 static constexpr const char* TypeName = "ExtensionModelKhrMaterialsVariants";
23 static constexpr const char* ExtensionName = "KHR_materials_variants";
24
28 std::vector<CesiumGltf::ExtensionModelKhrMaterialsVariantsValue> variants;
29
36 int64_t getSizeBytes() const {
37 int64_t accum = 0;
38 accum += int64_t(sizeof(ExtensionModelKhrMaterialsVariants));
40 int64_t(sizeof(CesiumUtility::ExtensibleObject));
41 accum += int64_t(
43 this->variants.capacity());
45 this->variants) {
46 accum +=
47 value.getSizeBytes() -
49 }
50 return accum;
51 }
52};
53} // namespace CesiumGltf
Classes for working with glTF models.
glTF extension that defines a material variations for mesh primitives
std::vector< CesiumGltf::ExtensionModelKhrMaterialsVariantsValue > variants
variants
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 ...