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;
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.
static const std::string image_jpeg
image/jpeg
static const std::string image_png
image/png
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.
static constexpr const char * TypeName
The original name of this type.
int32_t bufferView
The index of the bufferView that contains the image. This field MUST NOT be defined when uri is defin...
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,...
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,...