pub struct ViewCubeFrame {
pub overlay: Overlay,
pub view_proj: [[f32; 4]; 4],
pub forward: [f32; 3],
pub rect_css: [f32; 4],
}Expand description
The ViewCube render frame: its overlay drawn with a mini-camera in a scissored corner sub-rect.
Fields§
§overlay: Overlay§view_proj: [[f32; 4]; 4]Column-major mini-camera world→clip.
forward: [f32; 3]§rect_css: [f32; 4]Corner rect [x, y, w, h] in CSS px (top-left origin, y down).
Auto Trait Implementations§
impl Freeze for ViewCubeFrame
impl RefUnwindSafe for ViewCubeFrame
impl Send for ViewCubeFrame
impl Sync for ViewCubeFrame
impl Unpin for ViewCubeFrame
impl UnsafeUnpin for ViewCubeFrame
impl UnwindSafe for ViewCubeFrame
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more