Struct rin::gl::cubemap::Faces[][src]

pub struct Faces<I> where
    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> Faces<I> where
    I: Image
[src]

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

Notable traits for FacesIter<'a, I>

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

Trait Implementations

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

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

type Output = I

The returned type after indexing.

pub fn index(&self, index: u32) -> &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> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

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

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

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]