[−][src]Struct gltf::Texture
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> Clone for Texture<'a>[src]
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> Debug for Texture<'a>[src]
Auto Trait Implementations
impl<'a> Send for Texture<'a>
impl<'a> Unpin for Texture<'a>
impl<'a> Sync for Texture<'a>
impl<'a> UnwindSafe for Texture<'a>
impl<'a> RefUnwindSafe for Texture<'a>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,