cesium-native 0.43.0
Loading...
Searching...
No Matches
Scene.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/NamedObject.h>
7
8#include <cstdint>
9#include <vector>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API Scene final : public CesiumGltf::NamedObject {
19 static constexpr const char* TypeName = "Scene";
20
24 std::vector<int32_t> nodes;
25
32 int64_t getSizeBytes() const {
33 int64_t accum = 0;
34 accum += int64_t(sizeof(Scene));
36 int64_t(sizeof(CesiumGltf::NamedObject));
37 accum += int64_t(sizeof(int32_t) * this->nodes.capacity());
38 return accum;
39 }
40};
41} // namespace CesiumGltf
Classes for working with glTF models.
The base class for objects in a glTF that have a name.
Definition NamedObject.h:15
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition NamedObject.h:29
The root nodes of a scene.
Definition Scene.h:15
std::vector< int32_t > nodes
The indices of each root node.
Definition Scene.h:24
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Scene.h:32