Struct gltf::Texture [−][src]
pub struct Texture<'a> { /* fields omitted */ }
A texture and its sampler.
Methods
impl<'a> Texture<'a>
[src]
impl<'a> Texture<'a>
pub fn index(&self) -> usize
[src]
pub fn index(&self) -> usize
Returns the internal JSON index.
pub fn name(&self) -> Option<&str>
[src]
pub fn name(&self) -> Option<&str>
Optional user-defined name for this object.
pub fn sampler(&self) -> Sampler<'a>
[src]
pub fn sampler(&self) -> Sampler<'a>
Returns the sampler used by this texture.
pub fn source(&self) -> Image<'a>
[src]
pub fn source(&self) -> Image<'a>
Returns the image used by this texture.
pub fn extras(&self) -> &Extras
[src]
pub fn extras(&self) -> &Extras
Optional application specific data.
Trait Implementations
impl<'a> AsRef<Texture<'a>> for NormalTexture<'a>
[src]
impl<'a> AsRef<Texture<'a>> for NormalTexture<'a>
impl<'a> AsRef<Texture<'a>> for OcclusionTexture<'a>
[src]
impl<'a> AsRef<Texture<'a>> for OcclusionTexture<'a>
impl<'a> Clone for Texture<'a>
[src]
impl<'a> Clone for Texture<'a>
fn clone(&self) -> 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[src]
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]
impl<'a> Debug for Texture<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> AsRef<Texture<'a>> for Info<'a>
[src]
impl<'a> AsRef<Texture<'a>> for Info<'a>