Struct gltf::texture::Texture
[−]
[src]
pub struct Texture<'a> { /* fields omitted */ }A texture and its sampler.
Methods
impl<'a> Texture<'a>[src]
pub fn index(&self) -> usize[src]
Returns the internal JSON index.
pub fn sampler(&self) -> Sampler<'a>[src]
Returns the sampler used by this texture.
pub fn source(&self) -> Image<'a>[src]
Returns the image used by this texture.
pub fn extras(&self) -> &Extras[src]
Optional application specific data.
Trait Implementations
impl<'a> AsRef<Texture<'a>> for NormalTexture<'a>[src]
impl<'a> AsRef<Texture<'a>> for OcclusionTexture<'a>[src]
impl<'a> Clone for Texture<'a>[src]
fn clone(&self) -> Texture<'a>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'a> Debug for Texture<'a>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more