Struct glin::cubemap::Faces[][src]

pub struct Faces<I: Image> {
    pub positive_x: I,
    pub negative_x: I,
    pub positive_y: I,
    pub negative_y: I,
    pub positive_z: I,
    pub negative_z: I,
}

Used to allocate a Cubemap from a set of images

Fields

positive_x: Inegative_x: Ipositive_y: Inegative_y: Ipositive_z: Inegative_z: I

Implementations

impl<I: Image> Faces<I>[src]

pub fn iter(&self) -> FacesIter<'_, I>

Notable traits for FacesIter<'a, I>

impl<'a, I: Image> Iterator for FacesIter<'a, I> type Item = (GLenum, &'a I);
[src]

Trait Implementations

impl<I: Clone + Image> Clone for Faces<I>[src]

impl<I: Image> Index<u32> for Faces<I>[src]

type Output = I

The returned type after indexing.

fn index(&self, index: GLenum) -> &I[src]

returns the image corresponding to the GLenum for each face

Auto Trait Implementations

impl<I> RefUnwindSafe for Faces<I> where
    I: RefUnwindSafe

impl<I> Send for Faces<I> where
    I: Send

impl<I> Sync for Faces<I> where
    I: Sync

impl<I> Unpin for Faces<I> where
    I: Unpin

impl<I> UnwindSafe for Faces<I> where
    I: UnwindSafe

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[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> Pointable for T[src]

type Init = T

The type for initializers.

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.