cesium-native 0.43.0
Loading...
Searching...
No Matches
ExtensionMeshPrimitiveKhrMaterialsVariants.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValue.h>
6#include <CesiumGltf/Library.h>
7#include <CesiumUtility/ExtensibleObject.h>
8
9#include <vector>
10
11namespace CesiumGltf {
20 static constexpr const char* TypeName =
21 "ExtensionMeshPrimitiveKhrMaterialsVariants";
24 static constexpr const char* ExtensionName = "KHR_materials_variants";
25
32 std::vector<
35
42 int64_t getSizeBytes() const {
43 int64_t accum = 0;
44 accum += int64_t(sizeof(ExtensionMeshPrimitiveKhrMaterialsVariants));
46 int64_t(sizeof(CesiumUtility::ExtensibleObject));
47 accum += int64_t(
48 sizeof(CesiumGltf::
50 this->mappings.capacity());
51 for (const CesiumGltf::
53 this->mappings) {
54 accum +=
55 value.getSizeBytes() -
56 int64_t(sizeof(
59 }
60 return accum;
61 }
62};
63} // namespace CesiumGltf
Classes for working with glTF models.
std::vector< CesiumGltf::ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValue > mappings
A list of material to variant mappings.
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 ...