cesium-native 0.63.0
Loading...
Searching...
No Matches
ExtensionModelKhrLightsPunctual.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 <CesiumGltf/Light.h>
7#include <CesiumUtility/ExtensibleObject.h>
8
9#include <vector>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API ExtensionModelKhrLightsPunctual final
20 static constexpr const char* TypeName = "ExtensionModelKhrLightsPunctual";
23 static constexpr const char* ExtensionName = "KHR_lights_punctual";
24
28 std::vector<CesiumGltf::Light> lights;
29
36 int64_t getSizeBytes() const {
37 int64_t accum = 0;
38 accum += int64_t(sizeof(ExtensionModelKhrLightsPunctual));
40 int64_t(sizeof(CesiumUtility::ExtensibleObject));
41 accum += int64_t(sizeof(CesiumGltf::Light) * this->lights.capacity());
42 for (const CesiumGltf::Light& value : this->lights) {
43 accum += value.getSizeBytes() - int64_t(sizeof(CesiumGltf::Light));
44 }
45 return accum;
46 }
47};
48} // namespace CesiumGltf
Classes for working with glTF models.
KHR_lights_punctual glTF Document Extension.
static constexpr const char * ExtensionName
The official name of the extension. This should be the same as its key in the extensions object.
static constexpr const char * TypeName
The original name of this type.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
A directional, point, or spot light.
Definition Light.h:17
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 ...