cesium-native  0.41.0
ModelSpec.h
1 // This file was generated by generate-classes.
2 // DO NOT EDIT THIS FILE!
3 #pragma once
4 
5 #include "CesiumGltf/Accessor.h"
6 #include "CesiumGltf/Animation.h"
7 #include "CesiumGltf/Asset.h"
8 #include "CesiumGltf/Buffer.h"
9 #include "CesiumGltf/BufferView.h"
10 #include "CesiumGltf/Camera.h"
11 #include "CesiumGltf/Image.h"
12 #include "CesiumGltf/Library.h"
13 #include "CesiumGltf/Material.h"
14 #include "CesiumGltf/Mesh.h"
15 #include "CesiumGltf/Node.h"
16 #include "CesiumGltf/Sampler.h"
17 #include "CesiumGltf/Scene.h"
18 #include "CesiumGltf/Skin.h"
19 #include "CesiumGltf/Texture.h"
20 
21 #include <CesiumUtility/ExtensibleObject.h>
22 
23 #include <cstdint>
24 #include <string>
25 #include <vector>
26 
27 namespace CesiumGltf {
31 struct CESIUMGLTF_API ModelSpec : public CesiumUtility::ExtensibleObject {
32  static inline constexpr const char* TypeName = "Model";
33 
37  std::vector<std::string> extensionsUsed;
38 
42  std::vector<std::string> extensionsRequired;
43 
49  std::vector<CesiumGltf::Accessor> accessors;
50 
54  std::vector<CesiumGltf::Animation> animations;
55 
60 
66  std::vector<CesiumGltf::Buffer> buffers;
67 
74  std::vector<CesiumGltf::BufferView> bufferViews;
75 
81  std::vector<CesiumGltf::Camera> cameras;
82 
88  std::vector<CesiumGltf::Image> images;
89 
95  std::vector<CesiumGltf::Material> materials;
96 
102  std::vector<CesiumGltf::Mesh> meshes;
103 
107  std::vector<CesiumGltf::Node> nodes;
108 
114  std::vector<CesiumGltf::Sampler> samplers;
115 
121  int32_t scene = -1;
122 
126  std::vector<CesiumGltf::Scene> scenes;
127 
133  std::vector<CesiumGltf::Skin> skins;
134 
138  std::vector<CesiumGltf::Texture> textures;
139 
140 private:
144  ModelSpec() = default;
145  friend struct Model;
146 };
147 } // namespace CesiumGltf
Classes for working with glTF models.
Metadata about the glTF asset.
Definition: Asset.h:16
The root object for a glTF asset.
Definition: ModelSpec.h:31
std::vector< CesiumGltf::Camera > cameras
An array of cameras.
Definition: ModelSpec.h:81
std::vector< CesiumGltf::Scene > scenes
An array of scenes.
Definition: ModelSpec.h:126
std::vector< CesiumGltf::Skin > skins
An array of skins.
Definition: ModelSpec.h:133
std::vector< CesiumGltf::BufferView > bufferViews
An array of bufferViews.
Definition: ModelSpec.h:74
std::vector< CesiumGltf::Animation > animations
An array of keyframe animations.
Definition: ModelSpec.h:54
std::vector< CesiumGltf::Sampler > samplers
An array of samplers.
Definition: ModelSpec.h:114
std::vector< CesiumGltf::Material > materials
An array of materials.
Definition: ModelSpec.h:95
CesiumGltf::Asset asset
Metadata about the glTF asset.
Definition: ModelSpec.h:59
std::vector< std::string > extensionsRequired
Names of glTF extensions required to properly load this asset.
Definition: ModelSpec.h:42
std::vector< CesiumGltf::Mesh > meshes
An array of meshes.
Definition: ModelSpec.h:102
std::vector< CesiumGltf::Node > nodes
An array of nodes.
Definition: ModelSpec.h:107
std::vector< CesiumGltf::Image > images
An array of images.
Definition: ModelSpec.h:88
std::vector< CesiumGltf::Accessor > accessors
An array of accessors.
Definition: ModelSpec.h:49
std::vector< CesiumGltf::Texture > textures
An array of textures.
Definition: ModelSpec.h:138
std::vector< std::string > extensionsUsed
Names of glTF extensions used in this asset.
Definition: ModelSpec.h:37
std::vector< CesiumGltf::Buffer > buffers
An array of buffers.
Definition: ModelSpec.h:66
The root object for a glTF asset.
Definition: Model.h:14
The base class for objects that have extensions and extras.