5#include <CesiumGltf/Alias.h>
6#include <CesiumGltf/Library.h>
7#include <CesiumGltf/NamedObject.h>
23 static constexpr const char*
TypeName =
"File";
66 std::optional<std::string>
uri;
76 accum += int64_t(
sizeof(
File));
84 accum += int64_t(this->uri->capacity() *
sizeof(
char));
Classes for working with glTF models.
Used to alias files referenced within an external file to other paths by the parent.
Known values for The media type or MIME type of the external file.
static const std::string model_gltf_json
model/gltf+json
static const std::string model_gltf_binary
model/gltf-binary
A reference to an external file. Files MAY be referenced by a URI (or IRI) or a buffer view index.
std::optional< std::string > uri
The URI (or IRI) of the external file.
std::string mimeType
The media type or MIME type of the external file.
int32_t bufferView
The index of the bufferView that contains the file data.
static constexpr const char * TypeName
The original name of this type.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::vector< CesiumGltf::Alias > aliases
An array of aliases used for files within this external file. Aliases allow overriding inner file URI...
The base class for objects in a glTF that have a name.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...