5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/NamedObject.h>
21 static constexpr const char* TypeName =
"Image";
29 inline static const std::string image_jpeg =
"image/jpeg";
32 inline static const std::string image_png =
"image/png";
42 std::optional<std::string>
uri;
57 int32_t bufferView = -1;
71 accum += int64_t(this->uri->capacity() *
sizeof(
char));
Classes for working with glTF models.
Known values for The image's media type. This field MUST be defined when bufferView is defined.
Image data used to create a texture. Image MAY be referenced by an URI (or IRI) or a buffer view inde...
ImageSpec()=default
This class is not meant to be instantiated directly. Use Image instead.
std::optional< std::string > mimeType
The image's media type. This field MUST be defined when bufferView is defined.
std::optional< std::string > uri
The URI (or IRI) of the image.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
This class is not meant to be instantiated directly. Use Image instead.
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,...