cesium-native 0.43.0
Loading...
Searching...
No Matches
CameraPerspective.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 <optional>
9
10namespace CesiumGltf {
15struct CESIUMGLTF_API CameraPerspective final
20 static constexpr const char* TypeName = "CameraPerspective";
21
28 std::optional<double> aspectRatio;
29
34 double yfov = double();
35
43 std::optional<double> zfar;
44
48 double znear = double();
49
56 int64_t getSizeBytes() const {
57 int64_t accum = 0;
58 accum += int64_t(sizeof(CameraPerspective));
60 int64_t(sizeof(CesiumUtility::ExtensibleObject));
61
62 return accum;
63 }
64};
65} // namespace CesiumGltf
Classes for working with glTF models.
A perspective camera containing properties to create a perspective projection matrix.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< double > aspectRatio
The floating-point aspect ratio of the field of view.
std::optional< double > zfar
The floating-point distance to the far clipping plane.
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 ...