cesium-native 0.43.0
Loading...
Searching...
No Matches
ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValue.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 <optional>
10#include <string>
11#include <vector>
12
13namespace CesiumGltf {
18 final : public CesiumUtility::ExtensibleObject {
22 static constexpr const char* TypeName =
23 "ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValue";
24
31 std::vector<int32_t> variants;
32
38 int32_t material = -1;
39
46 std::optional<std::string> name;
47
54 int64_t getSizeBytes() const {
55 int64_t accum = 0;
56 accum += int64_t(
59 int64_t(sizeof(CesiumUtility::ExtensibleObject));
60 accum += int64_t(sizeof(int32_t) * this->variants.capacity());
61 if (this->name) {
62 accum += int64_t(this->name->capacity() * sizeof(char));
63 }
64 return accum;
65 }
66};
67} // namespace CesiumGltf
Classes for working with glTF models.
std::optional< std::string > name
The user-defined name of this variant material mapping.
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 ...