Struct gltf::texture::Texture
[−]
[src]
pub struct Texture<'a> { /* fields omitted */ }
A texture and its sampler.
Methods
impl<'a> Texture<'a>
[src]
fn new(gltf: &'a Gltf, index: usize, json: &'a Texture) -> Self
Constructs a Texture
.
fn index(&self) -> usize
Returns the internal JSON index.
fn as_json(&self) -> &Texture
Returns the internal JSON item.
fn sampler(&self) -> Sampler<'a>
The sampler used by this texture.
fn source(&self) -> Image<'a>
The image used by this texture.
fn extras(&self) -> &Extras
Optional application specific data.
Trait Implementations
impl<'a> Clone for Texture<'a>
[src]
fn clone(&self) -> Texture<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more