cesium-native  0.41.0
Camera.h
1 // This file was generated by generate-classes.
2 // DO NOT EDIT THIS FILE!
3 #pragma once
4 
5 #include "CesiumGltf/CameraOrthographic.h"
6 #include "CesiumGltf/CameraPerspective.h"
7 #include "CesiumGltf/Library.h"
8 #include "CesiumGltf/NamedObject.h"
9 
10 #include <optional>
11 #include <string>
12 
13 namespace CesiumGltf {
18 struct CESIUMGLTF_API Camera final : public CesiumGltf::NamedObject {
19  static inline constexpr const char* TypeName = "Camera";
20 
25  struct Type {
26  inline static const std::string perspective = "perspective";
27 
28  inline static const std::string orthographic = "orthographic";
29  };
30 
36  std::optional<CesiumGltf::CameraOrthographic> orthographic;
37 
43  std::optional<CesiumGltf::CameraPerspective> perspective;
44 
55  std::string type = Type::perspective;
56 };
57 } // namespace CesiumGltf
Classes for working with glTF models.
Known values for Specifies if the camera uses a perspective or orthographic projection.
Definition: Camera.h:25
A camera's projection. A node MAY reference a camera to apply a transform to place the camera in the ...
Definition: Camera.h:18
std::optional< CesiumGltf::CameraOrthographic > orthographic
An orthographic camera containing properties to create an orthographic projection matrix....
Definition: Camera.h:36
std::optional< CesiumGltf::CameraPerspective > perspective
A perspective camera containing properties to create a perspective projection matrix....
Definition: Camera.h:43
The base class for objects in a glTF that have a name.
Definition: NamedObject.h:15