[][src]Struct gltf::Texture

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 name(&self) -> Option<&str>[src]

Optional user-defined name for this object.

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> AsRef<Texture<'a>> for Info<'a>[src]

impl<'a> Clone for Texture<'a>[src]

impl<'a> Debug for Texture<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Texture<'a>

impl<'a> Send for Texture<'a>

impl<'a> Sync for Texture<'a>

impl<'a> Unpin for Texture<'a>

impl<'a> UnwindSafe for Texture<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.