Enum glium::texture::CubeLayer [] [src]

pub enum CubeLayer {
    PositiveX,
    NegativeX,
    PositiveY,
    NegativeY,
    PositiveZ,
    NegativeZ,
}

Represents a layer of a cubemap.

Variants

PositiveX
NegativeX
PositiveY
NegativeY
PositiveZ
NegativeZ

Methods

impl CubeLayer

fn get_layer_index(&self) -> usize

In some situations whole cubemaps can be binded at once. If this is the case, each layer of the cubemap has a specific index.

For example, if you bind a whole cubemap array, then the index 8 will correspond to the PositiveY face of the cubemap whose index is 1 in the array.

Trait Implementations

Derived Implementations

impl Hash for CubeLayer

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for CubeLayer

impl PartialEq for CubeLayer

fn eq(&self, __arg_0: &CubeLayer) -> bool

fn ne(&self, __arg_0: &CubeLayer) -> bool

impl Debug for CubeLayer

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for CubeLayer

fn clone(&self) -> CubeLayer

fn clone_from(&mut self, source: &Self)

impl Copy for CubeLayer