#[repr(u8)]pub enum Face {
PositiveX = 0,
NegativeX = 1,
PositiveY = 2,
NegativeY = 3,
PositiveZ = 4,
NegativeZ = 5,
}Expand description
Texture faces.
Faces are used for CubeMaps.
Standard 2D textures use only Face::PositiveX, also accessible as Face::Bidimensional.
Variants§
PositiveX = 0
+X face.
This corresponds to the only face of 2D textures (see Face::Bidimensional).
NegativeX = 1
-X face.
PositiveY = 2
+Y face.
NegativeY = 3
-Y face.
PositiveZ = 4
+Z face.
NegativeZ = 5
-Z face.
Implementations§
Source§impl Face
impl Face
Sourcepub const Bidimensional: Self = Self::PositiveX
pub const Bidimensional: Self = Self::PositiveX
2D face.
Equal in value to Face::PositiveX.
Trait Implementations§
impl Copy for Face
impl Eq for Face
impl StructuralPartialEq for Face
Auto Trait Implementations§
impl Freeze for Face
impl RefUnwindSafe for Face
impl Send for Face
impl Sync for Face
impl Unpin for Face
impl UnwindSafe for Face
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)