5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
20 static constexpr const char*
TypeName =
"Asset";
61 accum += int64_t(
sizeof(
Asset));
64 if (this->copyright) {
65 accum += int64_t(this->copyright->capacity() *
sizeof(
char));
67 if (this->generator) {
68 accum += int64_t(this->generator->capacity() *
sizeof(
char));
70 accum += int64_t(this->version.capacity() *
sizeof(
char));
71 if (this->minVersion) {
72 accum += int64_t(this->minVersion->capacity() *
sizeof(
char));
Classes for working with glTF models.
Metadata about the glTF asset.
std::optional< std::string > copyright
A copyright message suitable for display to credit the content creator.
std::optional< std::string > generator
Tool that generated this glTF model. Useful for debugging.
std::optional< std::string > minVersion
The minimum glTF version in the form of <major>.<minor> that this asset targets. This property MUST N...
int32_t thumbnail
The index of the image in the images array to use as a thumbnail for this asset. The image SHOULD be ...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
static constexpr const char * TypeName
The original name of this type.
std::string version
The glTF version in the form of <major>.<minor> that this asset targets.
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 ...