cesium-native 0.63.0
Loading...
Searching...
No Matches
Spotlight.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
8namespace CesiumGltf {
12struct CESIUMGLTF_API Spotlight final : public CesiumUtility::ExtensibleObject {
16 static constexpr const char* TypeName = "Spotlight";
17
21 double innerConeAngle = 0;
22
26 double outerConeAngle = 0.7853981633974483;
27
34 int64_t getSizeBytes() const {
35 int64_t accum = 0;
36 accum += int64_t(sizeof(Spotlight));
38 int64_t(sizeof(CesiumUtility::ExtensibleObject));
39
40 return accum;
41 }
42};
43} // namespace CesiumGltf
Classes for working with glTF models.
KHR_lights_punctual Light Spot Properties.
Definition Spotlight.h:12
double outerConeAngle
Angle in radians from centre of spotlight where falloff ends.
Definition Spotlight.h:26
double innerConeAngle
Angle in radians from centre of spotlight where falloff begins.
Definition Spotlight.h:21
static constexpr const char * TypeName
The original name of this type.
Definition Spotlight.h:16
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Spotlight.h:34
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 ...