cesium-native  0.41.0
ImageSpec.h
1 // This file was generated by generate-classes.
2 // DO NOT EDIT THIS FILE!
3 #pragma once
4 
5 #include "CesiumGltf/Library.h"
6 #include "CesiumGltf/NamedObject.h"
7 
8 #include <cstdint>
9 #include <optional>
10 #include <string>
11 
12 namespace CesiumGltf {
17 struct CESIUMGLTF_API ImageSpec : public CesiumGltf::NamedObject {
18  static inline constexpr const char* TypeName = "Image";
19 
24  struct MimeType {
25  inline static const std::string image_jpeg = "image/jpeg";
26 
27  inline static const std::string image_png = "image/png";
28  };
29 
37  std::optional<std::string> uri;
38 
46  std::optional<std::string> mimeType;
47 
52  int32_t bufferView = -1;
53 
54 private:
58  ImageSpec() = default;
59  friend struct Image;
60 };
61 } // namespace CesiumGltf
Classes for working with glTF models.
Known values for The image's media type. This field MUST be defined when bufferView is defined.
Definition: ImageSpec.h:24
Image data used to create a texture. Image MAY be referenced by an URI (or IRI) or a buffer view inde...
Definition: ImageSpec.h:17
std::optional< std::string > mimeType
The image's media type. This field MUST be defined when bufferView is defined.
Definition: ImageSpec.h:46
std::optional< std::string > uri
The URI (or IRI) of the image.
Definition: ImageSpec.h:37
Image data used to create a texture. Image MAY be referenced by an URI (or IRI) or a buffer view inde...
Definition: Image.h:10
The base class for objects in a glTF that have a name.
Definition: NamedObject.h:15