Struct Image
gltf::image
pub struct Image<'a> { /* fields omitted */ }
Image data used to create a texture.
impl<'a> Image<'a>
fn new(gltf: &'a Gltf, index: usize, json: &'a Image) -> Self
Constructs an Image from owned data.
Image
fn index(&self) -> usize
Returns the internal JSON index.
fn as_json(&self) -> &Image
Returns the internal JSON item.
fn extras(&self) -> &Extras
Optional application specific data.