Struct PipelineQuad
#[non_exhaustive]pub struct PipelineQuad {
pub corners: [[f64; 3]; 4],
pub uv: [[f32; 2]; 4],
pub color: u32,
}Expand description
A two-sided quad drawn by a mod pipeline. Corners run top left, bottom left, bottom right, top right as seen from the front.
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.
uv: [[f32; 2]; 4]Each corner’s texture coordinate, handed to the shader as given.
color: u32Packed 0xAARRGGBB colour in vanilla’s space; the shader reads it as linear light.
Implementations§
Trait Implementations§
§impl Clone for PipelineQuad
impl Clone for PipelineQuad
§fn clone(&self) -> PipelineQuad
fn clone(&self) -> PipelineQuad
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PipelineQuad
§impl Debug for PipelineQuad
impl Debug for PipelineQuad
§impl PartialEq for PipelineQuad
impl PartialEq for PipelineQuad
impl StructuralPartialEq for PipelineQuad
Auto Trait Implementations§
impl Freeze for PipelineQuad
impl RefUnwindSafe for PipelineQuad
impl Send for PipelineQuad
impl Sync for PipelineQuad
impl Unpin for PipelineQuad
impl UnsafeUnpin for PipelineQuad
impl UnwindSafe for PipelineQuad
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