5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
19 static constexpr const char* TypeName =
"Asset";
53 accum += int64_t(
sizeof(
Asset));
56 if (this->copyright) {
57 accum += int64_t(this->copyright->capacity() *
sizeof(
char));
59 if (this->generator) {
60 accum += int64_t(this->generator->capacity() *
sizeof(
char));
62 accum += int64_t(this->version.capacity() *
sizeof(
char));
63 if (this->minVersion) {
64 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...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
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 ...