[][src]Struct web_glitz::image::texture_cube::Level

pub struct Level<'a, F> { /* fields omitted */ }

A reference to a mipmap level of a TextureCube.

A reference to the base level of a TextureCube can be obtained through TextureCube::base_level. References to other levels of a TextureCube can be obtained via Levels.

Methods

impl<'a, F> Level<'a, F> where
    F: TextureFormat
[src]

pub fn level(&self) -> usize[src]

Returns the integer that identifies this level.

For example, if this Level is the texture's base level, returns 0; if it is the second level, returns 1; etc.

pub fn width(&self) -> u32[src]

Returns the width of this level.

pub fn height(&self) -> u32[src]

Returns the height of this level.

pub fn positive_x(&self) -> LevelFace<F>[src]

Returns a reference to the "positive x" face for this level.

pub fn negative_x(&self) -> LevelFace<F>[src]

Returns a reference to the "negative x" face for this level.

pub fn positive_y(&self) -> LevelFace<F>[src]

Returns a reference to the "positive y" face for this level.

pub fn negative_y(&self) -> LevelFace<F>[src]

Returns a reference to the "negative y" face for this level.

pub fn positive_z(&self) -> LevelFace<F>[src]

Returns a reference to the "positive z" face for this level.

pub fn negative_z(&self) -> LevelFace<F>[src]

Returns a reference to the "negative z" face for this level.

Auto Trait Implementations

impl<'a, F> !Send for Level<'a, F>

impl<'a, F> Unpin for Level<'a, F>

impl<'a, F> !Sync for Level<'a, F>

impl<'a, F> !UnwindSafe for Level<'a, F>

impl<'a, F> !RefUnwindSafe for Level<'a, F>

Blanket Implementations

impl<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[src]

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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