Struct gltf_json::image::Image []

pub struct Image {
    pub buffer_view: Option<Index<View>>,
    pub mime_type: Option<MimeType>,
    pub uri: Option<String>,
    pub extensions: Image,
    pub extras: Extras,
}

Image data used to create a texture.

Fields

The index of the buffer view that contains the image. Use this instead of the image's uri property.

The image's MIME type.

The uri of the image. Relative paths are relative to the .gltf file. Instead of referencing an external file, the uri can also be a data-uri. The image format must be jpg or png.

Extension specific data.

Optional application specific data.

Trait Implementations

impl Clone for Image

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Image

Formats the value using the given formatter.

impl Validate for Image

Validates only the invariants required for the library to function safely.

Validates the data against the glTF 2.0 specification. Read more