Struct WorldQuad
#[non_exhaustive]pub struct WorldQuad {
pub corners: [[f64; 3]; 4],
pub color: u32,
pub depth: WorldDepth,
}Expand description
A two-sided, unlit quad. Corners run top left, bottom left, bottom right, top right as seen from the front; alpha blends without writing depth.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.corners: [[f64; 3]; 4]Four world-space corners in blocks, before camera subtraction.
color: u32Packed 0xAARRGGBB color, including alpha.
depth: WorldDepthOcclusion behavior.
Implementations§
Trait Implementations§
impl Copy for WorldQuad
impl StructuralPartialEq for WorldQuad
Auto Trait Implementations§
impl Freeze for WorldQuad
impl RefUnwindSafe for WorldQuad
impl Send for WorldQuad
impl Sync for WorldQuad
impl Unpin for WorldQuad
impl UnsafeUnpin for WorldQuad
impl UnwindSafe for WorldQuad
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more