cesium-native 0.66.0
Loading...
Searching...
No Matches
Availability.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
11namespace CesiumGltf {
15struct CESIUMGLTF_API Availability final
20 static constexpr const char* TypeName = "Availability";
21
26 struct Constant {
28 static constexpr int32_t UNAVAILABLE = 0;
29
31 static constexpr int32_t AVAILABLE = 1;
32 };
33
38 int32_t bitstream = -1;
39
44 std::optional<int64_t> availableCount;
45
53 std::optional<int32_t> constant;
54
61 int64_t getSizeBytes() const {
62 int64_t accum = 0;
63 accum += int64_t(sizeof(Availability));
65 int64_t(sizeof(CesiumUtility::ExtensibleObject));
66
67 return accum;
68 }
69};
70} // namespace CesiumGltf
Classes for working with glTF models.
Known values for Integer indicating whether all of the elements are available (1) or all are unavaila...
static constexpr int32_t AVAILABLE
AVAILABLE (1)
static constexpr int32_t UNAVAILABLE
UNAVAILABLE (0)
An object describing the availability of a set of elements.
std::optional< int32_t > constant
Integer indicating whether all of the elements are available (1) or all are unavailable (0).
std::optional< int64_t > availableCount
A number indicating how many 1 bits exist in the availability bitstream.
static constexpr const char * TypeName
The original name of this type.
int32_t bitstream
Index of a buffer view that contains availability bits. If an element is available,...
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 ...